正文
增加 2 行删除 2 行
11 行未改动12131415161718192048 行未改动69707172737475767729 行未改动11 行未改动$$\begin{aligned}&f_{0,4} = 0 \\&f_{1,1} = a \\&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 longll n,a,b,c,ans=1e18;ll f[N][4];// 1='-' 2='R' 3='G' 4='B'char s[N];int main(){ios::sync_with_stdio(false);29 行未改动11 行未改动12131415161718192048 行未改动69707172737475767729 行未改动11 行未改动$$\begin{aligned}&f_{0,4} = 0 \\&f_{1,1} = a \\&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 longll n,a,b,c,ans=1e18;ll f[N][4];// 1='-' 2='R' 3='G' 4='B'char s[N];int main(){ios::sync_with_stdio(false);29 行未改动