版本比较
【ver 2.0】CSP-J 2026 SC 迷惑行为大赏!🤓👆
正文
增加 164 行删除 1 行
2,160 行未改动全部展开2161216221632164216521652166216721682169270 行未改动全部展开244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610133 行未改动全部展开2,160 行未改动全部展开
...// fuck ccf‘s mother// fuck ccf‘s mother(共 20 行)(很多行)```:::
一共 $12 + 20 + 20 + 15 =\color{red}67$ 行真挚的情感,喜提禁赛三年。270 行未改动全部展开//啊啊啊CCF害人不浅 ```:::
## 老大我们真的要玩这个吗
:::info[代码]```cppSC-J00749\travel\travel.cpp
.../*mian
#include<bits/stdc++.h>using namespace std;#define int long longconst int N=55;mt19937 rnd(time(0));int n=20;int x=1,y=1;int cnt=0;char c[N][N];char a[N][N];int lx,ly;void check(){ a[x][y]=c[x][y]; if(a[x][y]=='#') { x=lx,y=ly; } if(c[x][y]=='T') { cout<<"Well done!You got 1 points!\n"; } if(c[x][y]=='D') { cout<<"Dead!\n"; cout<<"back to last address?(0/1) \n >>>"; char flag;cin>>flag; if(flag=='1') { x=lx,y=ly; } else x=1,y=1; cout<<"Let's again!\n"; } if(c[x][y]=='E') { cout<<"Find exit\n"; cout<<"You have get"<<cnt<<"points!\n"; }}signed main(){ for(int i=1;i<=n;i++) { for(int j=1;j<=n;j++) { a[i][j]='?'; if(rnd()%17==0)c[i][j]='T'; else if(rnd()%17==0)c[i][j]='D'; else if(rnd()%3)c[i][j]='.'; else c[i][j]='#'; } } a[1][1]='S'; c[1][1]='S'; c[rnd()%n+1][rnd()%n+1]='E'; while(1) { for(int j=1;j<=n;j++) { for(int i=1;i<=n;i++) { if(i==x&&j==y)cout<<"A"; else cout<<a[i][j]; } cout<<"\n"; } cout<<"Now you at ("<<x<<","<<y<<")\n"; cout<<">>>:"; string op;cin>>op; lx=x,ly=y; cout<<"\n"; if(op=="tp") { int xx,yy; cout<<"where >>>"; cin>>xx>>yy; if(xx<1||yy<1||xx>n||yy>n)cout<<"unable \n"; else if(a[xx][yy]=='?')cout<<"You dont discover here!\n"; else { cout<<"success!\n"; x=xx; y=yy; } } else if(op=="a") { if(x==1) { cout<<"unaccepted!"; } else { x--; check(); } } else if(op=="w") { if(y==1) { cout<<"unaccepted!"; } else { y--; check(); } } else if(op=="s") { if(y==n) { cout<<"unaccepted!"; } else { y++; check(); } } else if(op=="d") { if(x==n) { cout<<"unaccepted!"; } else { x++; check(); } } else { cout<<"unable!\n"; } } return 0;}
*/```:::
咱玩的时候发现每次起点都会被围住,很愤怒,结果作者说:
> 可以用tp传送到墙的位置
???
## 大炮打蚊子
T4 原来是🧐,主席树!!??😰😰😰
133 行未改动全部展开