版本比较
题解:P14294 [JOI2024 预选赛 R2] 白色灯 2 / White Light 2
正文
增加 2 行删除 2 行
11 行未改动1213141516161718192048 行未改动6970717273737475767729 行未改动11 行未改动$$\begin{aligned}&f_{0,4} = 0 \\&f_{1,1} = a \\&f_{1,2} = &f_{1,2} =\begin{cases}0, & \text{if } s_1 = \texttt{R} \\c, & \text{otherwise}\end{cases}48 行未改动const int N=2e5+10;#define ll long long
ll n,a,b,c,ans=1e18;ll f[N][4];// 1='-' 2='R' 3='G' 4='B' ll f[N][4];// 1='-' 2='R' 3='G' 4='B'char s[N];
int main(){ ios::sync_with_stdio(false);29 行未改动