版本比较
JS-CSP2021-J 迷惑行为
正文
增加 18 行删除 18 行
163 行未改动全部展开164165166167168168169170171172104 行未改动全部展开27727827928028128128228328428428528628728728828929029029129229329429529629629729829829930030130230230330430530530630730830931031131131231331331431531631731731831932032032132232332455 行未改动38038138238338438438538638738820 行未改动409410411412413414413414415416417418110 行未改动全部展开529530531532533533534535536537135 行未改动全部展开673674675676677677678679680681227 行未改动全部展开163 行未改动全部展开 cin>>l; } cout<<t<<endl; return 0;
}```瞎 写 人```cpp104 行未改动全部展开
int main(){ fre();
int n; cin >> n;
for (int i = 1; i <= n; i ++ ) cin >> a[i];
for (int i = 1; i <= n; i ++ ) { if (i == 1 || a[i] != a[i - 1]) if (i == 1 || a[i] != a[i - 1]) { cout << i << " "; a[i] = -1; } }
cout << endl;
int t = 1; for (int i = 1; i <= n; i ++ ) if (a[i] != -1) a[t ++ ] = a[i];
for (int i = 1; i <= t; i ++ ) { if (i == 1 || a[i] != a[i - 1]) if (i == 1 || a[i] != a[i - 1]) { cout << i << " "; a[i] = -1; } }
cout << endl;
int t = 1; for (int i = 1; i <= n; i ++ ) if (a[i] != -1) a[t ++ ] = a[i];
for (int i = 1; i <= n; i ++ ) { if (i == 1 || a[i] != a[i - 1]) if (i == 1 || a[i] != a[i - 1]) { cout << i << " "; a[i] = -1; }55 行未改动/*CSP2021 rp++visit me qwq: www.luogu.com.cn/user/****** (@************)Friend link:@SU********T @li******ve @Da******ele @h*******n @跳**子 (luogu) @SU********T @li******ve @Da******ele @h*******n @跳**子 (luogu)*/```祝 福 人+宣 传 人+友 链 人```cpp20 行未改动 else if(s==j-1) s++;}}} printf("%d\n",s); for(int q=1;q<=n;q++) b[q]=a[q];
}}```逼 死 强 迫 症 人110 行未改动全部展开 { int m; scanf("%d",&m); if(m==1) { { ... } else if(m==2) {135 行未改动全部展开 if(tc==1||tc==2||tc==3)tc++; else{ f=false; break; } } } else{ if(st2[j]==':'){ if(tc==4)tc++;227 行未改动全部展开