版本比较
CSP-S 2025 SH 迷惑行为大赏
正文
增加 60 行删除 60 行
57 行未改动585960616263646566157 行未改动全部展开224225226227228229230231232141 行未改动全部展开3743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034046 行未改动41141241341441541641741841943 行未改动46346446546646746846947047147247315 行未改动4894904914924934944954964979 行未改动5075085095105115125135145155 行未改动52152252352452552652752852912 行未改动54254354454554654754854955011 行未改动56256356456556656756856957011 行未改动58258358458558658758858959059159259322 行未改动6166176186196206216226236246253 行未改动6296306316326336346356366376386393 行未改动64364464564664764864965065165265365465565665765865931 行未改动69169269369469569669769869970070170270370470570670770870971071171271371471571671771871972029 行未改动75075175275375475575675775875976076176276376476576676776876977077177277377477523 行未改动7998008018028038048058068073 行未改动81181281381481581681781881927 行未改动8478488498508518528538548558568578588592 行未改动86286386486586686786886987013 行未改动8848858868878888898908918928938948958968978988999009019029035 行未改动90991091191291391491591691739 行未改动9579589599609619629639649659669679686 行未改动9759769779789799809819829839849859869873 行未改动57 行未改动a = ta1 + c[i].second + ta2;cnt++;}}}int main() {ios :: sync_with_stdio();cin.tie(0), cout.tie(0);freopen("replace.in", "r", stdin);157 行未改动全部展开int n,q;int main(){freopen("replace.in","r",stdin);frepoen("replace.out","w",stdout);cin>>n>>q;for (int i=1;i<=q;i++)cout<<0<<endl;}141 行未改动全部展开- SH-S00231 `club.cpp````cpp// (〃>目<)// (╯▔皿▔)╯// [○.`Д′· ○]// (ˉ▽ˉ;)...// ≧ ﹏ ≦// o(╥﹏╥)o// /(ㄒoㄒ)/~~// ┏┛墓┗┓...(((m-__-)m```- `road.cpp````cpp// ε=ε=ε=(#>Д<)/// ε=(′ο`*)))```/ka- SH-S00271 `employ.cpp````cpp//yydz,鉴定为网络流```鉴定失败。6 行未改动freopen("employ.in","r",stdin);freopen("employ.out","w",stdout);cout<<0;return 0;}//wo ai shang zhong, shang zhong wan sui!//wo ai feng zhi gang, feng zhi gang wan sui!//wo ai CCF, CCF wan sui!!!43 行未改动10 9 84 0 0*///我不知道这样行不行//别假了//freopen("club.in","r",stdin);//freopen("club.out","w",stdout);//freopen("club.in","r",stdin);15 行未改动//1= please!!!!!!!!!!!!!//(省略 56 行重复)//1= please!!!!!!!!!!!!!//luogu id: lhz2022```祝这位诈骗分子 [lhz2022](https://www.luogu.com.cn/user/822439) 如愿。9 行未改动//I think I have leave from OI.//I am grade 9 now.//This is the last time I attend CSP when I am in middle school.//Hope for a good score.//---from No4 middle school affiliated to ECNU//--Chang__An__Li```祝好。5 行未改动{// 诈骗寻找迷惑行为大赏的人类:// freopen("blub.in", "r", stdin);// // freopen("club.in", "r", stdin);// 哦对了如果你是迷惑行为大赏欢迎观看我其他代码awafreopen("club.in", "r", stdin);freopen("club.out", "w", stdout);ios::sync_with_stdio(0);cin.tie(0);12 行未改动ectors~China↑Collecting←Found→ation↓*/```满足你的心愿。欸,笔者刚才并没有在 `//freopen` 列表中看见这位呀?!原来这位写的是 `// freopen`,下次可以去掉空格,增加被找到的概率哦。11 行未改动oo ..+ ==-=--||| ||(重复 144 次!重复 144 次!重复 144 次!)*/#include <bits/stdc++.h>using namespace std;typedef long long ll;//const int N = 2e5 + 5, L = 5e6 + 5;11 行未改动freopen("replace.out", "w", stdout);ios::sync_with_stdio(0);cin.tie(0);// 玉石俱焚家人们// 本来想#include <doc/xxxx>,怕被禁赛while (1) {;}cin >> n >> q;for (int i = 1; i <= n; ++i) {cin >> s[i][1] >> s[i][2];}22 行未改动- SH-S00763 `replace.cpp````cpp//目前考虑前i次有希望的考试,并且其中恰好有j场考试成功,i-j场考试放弃//那些成功的考试中恰好有k个人的耐心值是小于等于t的(t=pos[i]-j)的方案数(考虑放弃的考试的人员安排以及这k个成功的人的人员安排)#include <bits/stdc++.h>using namespace std;typedef long long ll;#define rep(i, a, b) for(ll i=a;i<=b;i++)3 行未改动int main(){freopen("replace.in", "r", stdin);// freopen("replace.out", "w", stdout);ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);return 0;}//注意一定要滚动数组!!!```既然有了 DP 的思路,你怎么放弃了……欸,不对,这怎么是 `replace.cpp`?!3 行未改动```cppcin>>n>>m>>k;//或许有些遗憾吧,没有达到预期//但是还是很高兴,至少,我尝试过//就像题目名一样,路漫漫其修远兮,吾将上下而求索//求得了什么,无处追寻//T1用了2h才写出来,T2不会,T3不会,T4都没看//我常常追忆过去 OI带给了我很多//我认识了很多新朋友,也有了社交的圈子//这大概就是命运吧,我终究不是OI的料//都说女生不适合学这个,我想 我就是一个很好的例子//本来还想去noip的,看来也没希望了//afo快乐 后会无期```祝好。31 行未改动/*I'm broke, lads.*/ freopen("road.in", "r", stdin);/*I'm broke, lads.*/ freopen("road.out", "w", stdout);/*I'm broke, lads.*/ cin >> n >> m >> k;/*I'm broke, lads.*/ //...(省略主函数)/*I'm broke, lads.*//*I'm broke, lads.*/ cout << ans << '\n';/*I'm broke, lads.*/ return 0;/*I'm broke, lads.*/ }/*I'm broke, lads.*/ ///*I'm broke, lads.*/ // AC 1-4/*I'm broke, lads.*/ ///*I'm broke, lads.*/ // Try #1/*I'm broke, lads.*/ // use cnt to iterate through which villages to turn into cities/*I'm broke, lads.*/ // and add the edges to use kruskal every time/*I'm broke, lads.*/ // also, check if the minimum value is smaller than the price to build the city/*I'm broke, lads.*/ ///*I'm broke, lads.*/ // Try #2/*I'm broke, lads.*/ // check the minimum cost with making no villages to cities using kruskal/*I'm broke, lads.*/ // then, use cnt to iterate through which villages to turn into cities/*I'm broke, lads.*/ // each time, check if a route is lesser or equal to the original path/*I'm broke, lads.*/ // then change the weight/*I'm broke, lads.*/ ///*I'm broke, lads.*/ // Try #3/*I'm broke, lads.*/ // put all the paths between cities via villages in edges[], with a special param of the village/*I'm broke, lads.*/ // if kruskal uses the edge then iterate through the edges to minus the weight/*I'm broke, lads.*/ ///*I'm broke, lads.*/ // should be at most O(n^2)/*I'm broke, lads.*/ // AAAH```29 行未改动// 崩溃了,第一题难度就这么大,DP?贪心?// 14::50// T2看了,根本不会,最小生成树Prim早忘了// 15:10// T3看了,还是不会,什么东西啊?// 15:12// T4看了,一脸懵逼,早知道不来考S组复赛了,回去还要挨骂.....// 15:15// 完蛋,直接开始暴搜吧// 15:36// 暴搜写完了,写大样例了// 15:45// 特殊性质A写完了// 15:51// 思考:假设初始的时候所有人都安排在1号团// => 将ai1都变成0,那么ai2和ai3都是+和-// => 将至少n/2个人安排进2/3,那么ans = (sum a1) + ai2、ai3最大// 17:39// 这次考试绝对考砸了,T1只写了暴力骗分,T2暴力写不出来,T3倒在判断string长度上了,T4太复杂了完全不会// 怎么办?只能躺平了,预估40pts// 哎,早知道不来考s组的,一堆东西学了又忘,dp往深一点就不会了,最小生成树学了但仅限模版,二分答案现在还弄不懂,dijiesitela跟拖大便一样,完全不会// 我为什么要来学OI???```遗憾退场。祝好。23 行未改动```cpp//有没有见过美国总统大选的选票呀?// Bidden(304 votes)|-------------------------|---------- |v.s.| --------------| Bidden(234 votes)// 219votes```何意味?3 行未改动for (int i = 0; i < q; i++){cin >> tmp >> tmp2;cout << 0 << end;//祈求ccf的施舍}```总司令,很遗憾,你 CE 了。27 行未改动- `employ.cpp````cpp//employ employer employee//我要拿下今年CSP-S复赛一等奖//我不要爆零!!!我不要爆零!!!我不要爆零!!!我不要爆零!!!我不要爆零!!!//不爆零!!!不爆零!!!不爆零!!!不爆零!!!不爆零!!!//爆零警告//s[i]=0则拒绝,s[i]=1则录用```怎么还有英语词性转换……另外祝你不爆零。2 行未改动```cpp//ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz//1234567890-=[]{};:'"',./?><~`!@#$%^&*()1234567890.+-*/\|//https://www.mozilla.org/zh-CN/privacy/firefox///https://hao.360.com/?src=lm&ls=n039d848e98//IT DIY VIP ASAP PRC CPC WTO WHO//FAQ STEM TV APP//teamwork band DJ(=disc jockey) lead//off-stage backstage13 行未改动//https://www.winrar.com.cn/download-70064scp.html//https://www.mozilla.org/zh-CN/firefox/all/desktop-esr/win64/zh-CN///https://www.mozilla.org/en-US/firefox/132.0.2/system-requirements///https://www.winrar.com.cn/download/winrar-x64-700scp.exe//我的电脑 此电脑//不要爆零//我想AC本题,不想爆零```- SH-S00953 `road.cpp````cppstruct cmp : public binary_function<node, node, bool>{booloperator()(const node& a, const node& b) const//woc把stl.function.h 的代码复制过来改了改真对了{ return a.w > b.w; }};```5 行未改动//你好,我是洛谷网红Nephren(uid=1436750)//当你看到我写的话时,我差不多快退役了//今年我T1都没写出来,真是废物呢,呵呵//不过,我永远喜欢我的npyCute_Furina//退役,回归whk吧```你好 [Nephren](https://www.luogu.com.cn/user/1436750)。祝好。39 行未改动- SH-S01302```cpp//还是那个又菜又爱玩的我,还是那个惊喜与惊吓并存的比赛//从NOIP2018小学组试点,到CSP-J,再到CSP-S,磕磕绊绊走到今天//十年竞赛生涯,我似乎未曾获得什么,但我感到很满足//感恩有你,CCF```祝好。6 行未改动int main(){freopen("club.in","r",stdin);freopen("club.out","w",stdout);cout<<"18";cout<<"4";cout<<"13"<<endl;return 0;}```3 行未改动57 行未改动585960616263646566157 行未改动全部展开224225226227228229230231232141 行未改动全部展开3743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034046 行未改动41141241341441541641741841943 行未改动46346446546646746846947047147247315 行未改动4894904914924934944954964979 行未改动5075085095105115125135145155 行未改动52152252352452552652752852912 行未改动54254354454554654754854955011 行未改动56256356456556656756856957011 行未改动58258358458558658758858959059159259322 行未改动6166176186196206216226236246253 行未改动6296306316326336346356366376386393 行未改动64364464564664764864965065165265365465565665765865931 行未改动69169269369469569669769869970070170270370470570670770870971071171271371471571671771871972029 行未改动75075175275375475575675775875976076176276376476576676776876977077177277377477523 行未改动7998008018028038048058068073 行未改动81181281381481581681781881927 行未改动8478488498508518528538548558568578588592 行未改动86286386486586686786886987013 行未改动8848858868878888898908918928938948958968978988999009019029035 行未改动90991091191291391491591691739 行未改动9579589599609619629639649659669679686 行未改动9759769779789799809819829839849859869873 行未改动57 行未改动a = ta1 + c[i].second + ta2;cnt++;}}}int main() {ios :: sync_with_stdio();cin.tie(0), cout.tie(0);freopen("replace.in", "r", stdin);157 行未改动全部展开int n,q;int main(){freopen("replace.in","r",stdin);frepoen("replace.out","w",stdout);cin>>n>>q;for (int i=1;i<=q;i++)cout<<0<<endl;}141 行未改动全部展开- SH-S00231 `club.cpp````cpp// (〃>目<)// (╯▔皿▔)╯// [○.`Д′· ○]// (ˉ▽ˉ;)...// ≧ ﹏ ≦// o(╥﹏╥)o// /(ㄒoㄒ)/~~// ┏┛墓┗┓...(((m-__-)m```- `road.cpp````cpp// ε=ε=ε=(#>Д<)/// ε=(′ο`*)))```/ka- SH-S00271 `employ.cpp````cpp//yydz,鉴定为网络流```鉴定失败。6 行未改动freopen("employ.in","r",stdin);freopen("employ.out","w",stdout);cout<<0;return 0;}//wo ai shang zhong, shang zhong wan sui!//wo ai feng zhi gang, feng zhi gang wan sui!//wo ai CCF, CCF wan sui!!!43 行未改动10 9 84 0 0*///我不知道这样行不行//别假了//freopen("club.in","r",stdin);//freopen("club.out","w",stdout);//freopen("club.in","r",stdin);15 行未改动//1= please!!!!!!!!!!!!!//(省略 56 行重复)//1= please!!!!!!!!!!!!!//luogu id: lhz2022```祝这位诈骗分子 [lhz2022](https://www.luogu.com.cn/user/822439) 如愿。9 行未改动//I think I have leave from OI.//I am grade 9 now.//This is the last time I attend CSP when I am in middle school.//Hope for a good score.//---from No4 middle school affiliated to ECNU//--Chang__An__Li```祝好。5 行未改动{// 诈骗寻找迷惑行为大赏的人类:// freopen("blub.in", "r", stdin);// // freopen("club.in", "r", stdin);// 哦对了如果你是迷惑行为大赏欢迎观看我其他代码awafreopen("club.in", "r", stdin);freopen("club.out", "w", stdout);ios::sync_with_stdio(0);cin.tie(0);12 行未改动ectors~China↑Collecting←Found→ation↓*/```满足你的心愿。欸,笔者刚才并没有在 `//freopen` 列表中看见这位呀?!原来这位写的是 `// freopen`,下次可以去掉空格,增加被找到的概率哦。11 行未改动oo ..+ ==-=--||| ||(重复 144 次!重复 144 次!重复 144 次!)*/#include <bits/stdc++.h>using namespace std;typedef long long ll;//const int N = 2e5 + 5, L = 5e6 + 5;11 行未改动freopen("replace.out", "w", stdout);ios::sync_with_stdio(0);cin.tie(0);// 玉石俱焚家人们// 本来想#include <doc/xxxx>,怕被禁赛while (1) {;}cin >> n >> q;for (int i = 1; i <= n; ++i) {cin >> s[i][1] >> s[i][2];}22 行未改动- SH-S00763 `replace.cpp````cpp//目前考虑前i次有希望的考试,并且其中恰好有j场考试成功,i-j场考试放弃//那些成功的考试中恰好有k个人的耐心值是小于等于t的(t=pos[i]-j)的方案数(考虑放弃的考试的人员安排以及这k个成功的人的人员安排)#include <bits/stdc++.h>using namespace std;typedef long long ll;#define rep(i, a, b) for(ll i=a;i<=b;i++)3 行未改动int main(){freopen("replace.in", "r", stdin);// freopen("replace.out", "w", stdout);ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);return 0;}//注意一定要滚动数组!!!```既然有了 DP 的思路,你怎么放弃了……欸,不对,这怎么是 `replace.cpp`?!3 行未改动```cppcin>>n>>m>>k;//或许有些遗憾吧,没有达到预期//但是还是很高兴,至少,我尝试过//就像题目名一样,路漫漫其修远兮,吾将上下而求索//求得了什么,无处追寻//T1用了2h才写出来,T2不会,T3不会,T4都没看//我常常追忆过去 OI带给了我很多//我认识了很多新朋友,也有了社交的圈子//这大概就是命运吧,我终究不是OI的料//都说女生不适合学这个,我想 我就是一个很好的例子//本来还想去noip的,看来也没希望了//afo快乐 后会无期```祝好。31 行未改动/*I'm broke, lads.*/ freopen("road.in", "r", stdin);/*I'm broke, lads.*/ freopen("road.out", "w", stdout);/*I'm broke, lads.*/ cin >> n >> m >> k;/*I'm broke, lads.*/ //...(省略主函数)/*I'm broke, lads.*//*I'm broke, lads.*/ cout << ans << '\n';/*I'm broke, lads.*/ return 0;/*I'm broke, lads.*/ }/*I'm broke, lads.*/ ///*I'm broke, lads.*/ // AC 1-4/*I'm broke, lads.*/ ///*I'm broke, lads.*/ // Try #1/*I'm broke, lads.*/ // use cnt to iterate through which villages to turn into cities/*I'm broke, lads.*/ // and add the edges to use kruskal every time/*I'm broke, lads.*/ // also, check if the minimum value is smaller than the price to build the city/*I'm broke, lads.*/ ///*I'm broke, lads.*/ // Try #2/*I'm broke, lads.*/ // check the minimum cost with making no villages to cities using kruskal/*I'm broke, lads.*/ // then, use cnt to iterate through which villages to turn into cities/*I'm broke, lads.*/ // each time, check if a route is lesser or equal to the original path/*I'm broke, lads.*/ // then change the weight/*I'm broke, lads.*/ ///*I'm broke, lads.*/ // Try #3/*I'm broke, lads.*/ // put all the paths between cities via villages in edges[], with a special param of the village/*I'm broke, lads.*/ // if kruskal uses the edge then iterate through the edges to minus the weight/*I'm broke, lads.*/ ///*I'm broke, lads.*/ // should be at most O(n^2)/*I'm broke, lads.*/ // AAAH```29 行未改动// 崩溃了,第一题难度就这么大,DP?贪心?// 14::50// T2看了,根本不会,最小生成树Prim早忘了// 15:10// T3看了,还是不会,什么东西啊?// 15:12// T4看了,一脸懵逼,早知道不来考S组复赛了,回去还要挨骂.....// 15:15// 完蛋,直接开始暴搜吧// 15:36// 暴搜写完了,写大样例了// 15:45// 特殊性质A写完了// 15:51// 思考:假设初始的时候所有人都安排在1号团// => 将ai1都变成0,那么ai2和ai3都是+和-// => 将至少n/2个人安排进2/3,那么ans = (sum a1) + ai2、ai3最大// 17:39// 这次考试绝对考砸了,T1只写了暴力骗分,T2暴力写不出来,T3倒在判断string长度上了,T4太复杂了完全不会// 怎么办?只能躺平了,预估40pts// 哎,早知道不来考s组的,一堆东西学了又忘,dp往深一点就不会了,最小生成树学了但仅限模版,二分答案现在还弄不懂,dijiesitela跟拖大便一样,完全不会// 我为什么要来学OI???```遗憾退场。祝好。23 行未改动```cpp//有没有见过美国总统大选的选票呀?// Bidden(304 votes)|-------------------------|---------- |v.s.| --------------| Bidden(234 votes)// 219votes```何意味?3 行未改动for (int i = 0; i < q; i++){cin >> tmp >> tmp2;cout << 0 << end;//祈求ccf的施舍}```总司令,很遗憾,你 CE 了。27 行未改动- `employ.cpp````cpp//employ employer employee//我要拿下今年CSP-S复赛一等奖//我不要爆零!!!我不要爆零!!!我不要爆零!!!我不要爆零!!!我不要爆零!!!//不爆零!!!不爆零!!!不爆零!!!不爆零!!!不爆零!!!//爆零警告//s[i]=0则拒绝,s[i]=1则录用```怎么还有英语词性转换……另外祝你不爆零。2 行未改动```cpp//ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz//1234567890-=[]{};:'"',./?><~`!@#$%^&*()1234567890.+-*/\|//https://www.mozilla.org/zh-CN/privacy/firefox///https://hao.360.com/?src=lm&ls=n039d848e98//IT DIY VIP ASAP PRC CPC WTO WHO//FAQ STEM TV APP//teamwork band DJ(=disc jockey) lead//off-stage backstage13 行未改动//https://www.winrar.com.cn/download-70064scp.html//https://www.mozilla.org/zh-CN/firefox/all/desktop-esr/win64/zh-CN///https://www.mozilla.org/en-US/firefox/132.0.2/system-requirements///https://www.winrar.com.cn/download/winrar-x64-700scp.exe//我的电脑 此电脑//不要爆零//我想AC本题,不想爆零```- SH-S00953 `road.cpp````cppstruct cmp : public binary_function<node, node, bool>{booloperator()(const node& a, const node& b) const//woc把stl.function.h 的代码复制过来改了改真对了{ return a.w > b.w; }};```5 行未改动//你好,我是洛谷网红Nephren(uid=1436750)//当你看到我写的话时,我差不多快退役了//今年我T1都没写出来,真是废物呢,呵呵//不过,我永远喜欢我的npyCute_Furina//退役,回归whk吧```你好 [Nephren](https://www.luogu.com.cn/user/1436750)。祝好。39 行未改动- SH-S01302```cpp//还是那个又菜又爱玩的我,还是那个惊喜与惊吓并存的比赛//从NOIP2018小学组试点,到CSP-J,再到CSP-S,磕磕绊绊走到今天//十年竞赛生涯,我似乎未曾获得什么,但我感到很满足//感恩有你,CCF```祝好。6 行未改动int main(){freopen("club.in","r",stdin);freopen("club.out","w",stdout);cout<<"18";cout<<"4";cout<<"13"<<endl;return 0;}```3 行未改动