版本比较
CSP-S2026 HL迷惑行为打赏
正文
增加 454 行删除 1 行
78 行未改动798081828384858634 行未改动12112212312412512612712888 行未改动21721821922022122222322475 行未改动30030130230330430530630730830919 行未改动32933033133233333433533633733833978 行未改动```cppfreopen("migrate.in","w",stdin);freopen("migrate.out","r",stdout);```# 神秘注释爆搜充满了力量!(**S00013**)```cpp//baosou gives me more power34 行未改动///////////////////zheme/////////////////////////////////////////////////////////////////////////////////////////////cai////////////////////////////////////////////////////////////////////////```沃趣,O(**S00102**)```cpp// I love Skirk88 行未改动// 兄弟兄弟,我好想看不懂题……// emm……我好想忘记随机数怎么打了……// 兄弟们,你认为我可以在患有大脑萎缩的情况下AK CSP-S吗?// 我真不行了,面向样例编程启动!```273还是太强了(**S00229**)```cpp/*75 行未改动zhong jian wang le.wo gai zai na li ting liu,wo wen wo zi ji.*/```# 禁三行为**S00013**```cpp#define IloveCCF ios::sync_with_stdio(0);19 行未改动**S00477**```cpp//CCF HAVE NO EGG```---笔者警示后人:一定不要在比赛里写**ccf**,会涉嫌违规78 行未改动79808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033134 行未改动36636736836937037137237337437588 行未改动46446546646746846947047147247347447547675 行未改动55255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774819 行未改动76876977077177277377477577677777877978078178278378478578678778878979079179278 行未改动```cppfreopen("migrate.in","w",stdin);freopen("migrate.out","r",stdout);```**S00218,S00458**将答案输出到了.ans```cppfreopen("hub.ans","w",stdout);```# 神人实现有**0**人在代码中写下#include"bits/stdc++.h",让我们恭喜(?)也许真能过编?(**S00071**)```cpp;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;```**S00173,S00271,S00340,S00366,S00484,S00498,S00528.S00435,S00277,S00278,S00528**的代码十分恶臭(如435的subway)```cppint a[13917867];```(six seven six seven six seven?)**S00410**是C语言大肘子```cpp// SPDX-License-Identifier: MPL-2.0#include<stdio.h>#include<stdlib.h>#include<bits/stdc++.h>long crys[500000];char crys_able[500000];template<typename K,typename V> struct mapping{ // C++难死我了,除了声明确实比C难点()public:size_t max_size,curr_size;K* keys;V* values;char* flags;mapping(){this->keys=(K*)malloc(sizeof(K)*4);this->values=(V*)malloc(sizeof(V)*4);this->flags=(char*)calloc(4,1);max_size=4;curr_size=0;}~mapping(){free(keys);free(values);free(flags);}void set(K key,V value){if(max_size==curr_size){max_size*=2;auto new_keys=(K*)malloc(sizeof(K)*max_size); // 扩容非常简单粗暴()auto new_values=(V*)malloc(sizeof(V)*max_size);auto new_flags=(char*)calloc(max_size,1);mapping<K,V> a;a.keys=new_keys;a.values=new_values;a.flags=new_flags;a.max_size=max_size;a.curr_size=0;for(size_t i=0;i<curr_size;i++){a.set(keys[i],values[i]);}a.keys=nullptr;a.values=nullptr;a.flags=nullptr;}K temp=key&(max_size-1),temp2=key;while((flags[temp]&&flags[temp]!=2)||keys[temp]==key){temp2>>=5;temp=(temp*5+temp2)&(max_size-1);}if(flags[temp]&&flags[temp]!=2)curr_size+=1;flags[temp]=1;values[temp]=value;}V get(K key,V dft){if(!curr_size)return dft;K temp=key&(max_size-1),temp2=key;while(flags[temp]||keys[temp]==key){temp2>>=5;temp=(temp*5+temp2)&(max_size-1);}if(keys[temp]==key){return values[temp];}return dft;}};int main(){FILE* in=fopen("crystal.in","r");FILE* out=fopen("crystal.out","w");int n;long m;fscanf(in,"%d %ld",&n,&m);for(int i=0;i<n;i++)fscanf(in," %ld",crys+i);mapping<long,int> mp;for(int i=0;i<n;i++){mp.set(crys[i],mp.get(crys[i],0)+1);}int max_val=0,count_last=0;long max_key;for(int i=0;i<n;i++){if(mp.get(crys[i],0)>max_val)max_val=mp.get(crys[i],0L),max_key=crys[i];}count_last=max_val;while(m){long max_c=-1000000000001L;for(int j=0;j<n;j++){max_c=max_c>crys[j]?max_c:crys[j]>max_key?max_c:crys[j];}int count_=0;for(int j=0;j<n;j++){crys_able[j]==(max_c==crys[j]);count_++;}if(m<count_*(max_key-max_c)){m=m/(max_key-max_c);count_last+=m;break;}count_last+=count_;m-=count_*(max_key-max_c);}fprintf(out,"%d",count_last);fclose(in);fclose(out);return 0;}```**S00532**也许大手子?(AI味有点重)```cpp#include <cstdio>#include <iostream>#include <vector>#include <algorithm>#include <cstdlib>using namespace std;#define loop(n) for (int i=0; i<n; ++i)int cmp (const void* a, const void* b, void* arg) {return (*(int*)b)-(*(int*)a);}int main(int argc, char **argv) {freopen("crystal.in", "r", stdin);freopen("crystal.out", "w", stdout);vector<int> hi;int n, m;cin >> n >> m;loop(n) {int a;cin >> a;hi.push_back(a);}qsort_r(hi.data(), hi.size(), sizeof(int), cmp, NULL);loop(n -1) {hi[i] -= hi[i+1];}int mx;loop(n-1) {int tot=1, r=m, ph=0;for (int j = i+1; j<n; ++j) {ph += hi[j-1];r -= ph;if (r < 0) {break;}tot++;}mx = max(mx, tot);}cout << mx << '\n';return 0;}```**S00126**cin写反```cppcin<<v<<m<<n;```**S00476**未识别到人脸```cpp#include<bits/stdc++.h>using namespace std;long long c, t;long long c[N],t[N];int const N=1e5+5;int main(){freopen("hub.in",r,stdin);cin>>c>>t;for(int i=1;i<=n;i++){cin>>n[i]>>k[i];}{for(int i=1;i<=k;i++)cin>>k;if(nam>c);b[i]=true;if(nam<c);b[i]=false;i++;cin>>c;}{for(int i=1;i<=k;i++)cin>>k;if(nam>t);b[i]=true;if(nam<t);b[i]=false;i++;cin>>t;}for(int i=1;i<=n;i++){cout>>k[i];}}freopen("hub.out",r,stdout);return 0;}```“holly world”(**S00033**)```cppcout<<"Holle,world";```badbye(**S00119**)```cppcout << "Hello world!" << endl;cout << "Good Bye NOI" << endl;cout << "See you next time!" << endl;cout << "What do you want more than a happy ending?" << endl;cout << "REMEMBER ME!" << endl;cout << "Trick||Treat!" << endl;cout << "-----Ending on 2026.10.31 the Halloween.-----";```# 神秘注释爆搜充满了力量!(**S00013**)```cpp//baosou gives me more power34 行未改动///////////////////zheme/////////////////////////////////////////////////////////////////////////////////////////////cai//////////////////////////////////////////////////////////////////////////给lyy打个懒标记-by writer```沃趣,O(**S00102**)```cpp// I love Skirk88 行未改动// 兄弟兄弟,我好想看不懂题……// emm……我好想忘记随机数怎么打了……// 兄弟们,你认为我可以在患有大脑萎缩的情况下AK CSP-S吗?// 我真不行了,面向样例编程启动!// 这让我想到了GitHub……// 啊啊啊啊啊啊啊啊啊啊啊啊……// 好难受,居然是win10,我想玩扫雷……!// 这样吧,用pytohn写点什么玩玩吧……```273还是太强了(**S00229**)```cpp/*75 行未改动zhong jian wang le.wo gai zai na li ting liu,wo wen wo zi ji.*/```bro的行为令人难以理解(**S00292**)```cpp/*这里有严重问题!!!!!!开495能过,501过不了,505过不了?????放Linux上测一下。Linux直接不给我编译了,笑死。。。可能这是出题人故意的,t数组应当换个写法!换成vector就过了,神了!*/```Father and mother I (数据删除) you!!(**S00524**)```cpp/*I am shanzhenhengFather and mother I love you!!!Wish you can be happy and healthy!!!I wish to AK CSP!!!(But I can not and I can get this achievement in the future)I believe that keep on trying and I will be successful.I will be more hard-work in the future.*/```我是愿者(**S00013**)```cpp/*//freopen//freopenfreeopenfreeopenfropenfropenint mian()CCFCCFCCF//愿者上钩这个红色的dev一写上去中文就会变成gunmu,还好这有个蓝色的不会第一次打csps,孩子们觉得我可以拿1=吗T1差分数组想了半天,最后发现排序双指针加前缀和可以过T2dij暴力 我真没想到我的dij有一天也能不用调就过T3大爆搜T4看不懂100+44+8?+0=152应该可以过的吧......毕竟去年分数线才63没啥说的了,给你们唱首歌吧《world.execute(me);》(execute是这么拼的吗(没听过的直接拉出去墙壁一万遍,太好听了Swich on the power lineRemember to put on protectionLay down your piecesAnd lets begin object creation(是这么唱的吗Fill in my data parameters initialisationSet up our new worldAnd lets begin a simulationIf Im a set of pointsthen I will give you my demension(?If Im a circlethen I will give my circumfrenceIf Im a sine wavethen you can set on(? all my tangentIf I approach infinitythen you can be my limutation(?Switch my currentTo A.C To D.CAnd then blind my visionSo dizzy So dizzyOh~~ We can travelTo A.D To B.CAnd we can uniteSo deeply So deeplyIf I can If I cangive you(? all the(? stimulationThen I can Then I canbe your only satisfactionIf I can make you happyI will run the executionThough we are trappedIn this strange strange simulationIf Im an eggplantThen I will give you my (我忘了怎么拼了)If Im a tomatoThen I will give you antioxidant(?If Im a tabby catThen I will purr for your enjoymentIf Im the only godThen youre the proof of my (这个我也忘了)Switch my genderTo F To MAnd then do whateverFrom A.M. To P.M.Oh~~ Switch my roleTo S To MAnd we can enterThe trance The tranceIf I can If I canerase all the pointless fragmentThen I can Then I canfinally be compeletionThough You has leftYou has leftYou has leftYou has leftYou has leftYou has le-e-eft me in isolationIf I can If I canfeel your vibrationThen maybe Then maybeyou wont leave me so disheartened(我是不是唱串了Challenging Your GodYou have made some illegal argumentExecution execution execution executionExecution execution execution executionExecution execution execution executionEin(? Dos Trois Ne Fem LiuExecutionIf I can If I cangive them all the ExecutionThen I can Then I canbe your only ExecutionIf I can have you backI will run the ExecutionThough we are trapped we are trappedAh~~~Ive study Ive studyhow to properly lo-o-oveQuestion me Question meI can answer all of(?lo-o-oveI know the algerbrac(? expression of(? lo-o-oveThough you are freeI still(? trapped trappedIn lo-o-oveExecution*/```三年OI一场空,___________(**S00245**)```cpp//不开 longlong 见祖宗```英文大手子(**S00288**)```cpp//I have a magical idea but it seems hopeless.//Auh,I have no time and ability to see that.//Enn...Sometime I want to migrate to a second planet.//Why is it so difficult.```文明用语从我做起(**S00340**)```cpp//怎么就挂了。哎//所谓的幸福 其实哪里都找不到啊//窝巢你大爷的忘排序了我调了两个小时差点他吗哭了//哦你奶奶的这个好像也是图 最短路计数+容斥吗 可是我不会最短路计数啊//出两个图上 您活不活 我最讨厌的就是数据结构和树图这种老阴玩意//我现在完全不想写这坨十了 这市区吗```你猜对了!(**S00436**)```cpp//额的神啊,我终于想出来正解了,贪心模拟遍历!!!//可惜还得做其他题解释不了,时间戳16:22:24//动态规划吓哭了,有点像dijkstra```Treat||Trick(**S00446**)```cpp//不给AC就捣蛋```这无疑是难绷的(**S00523**)```cpp//cout<<"Bu bu bu zhe ge wu yi shi nan beng de!"```# 禁三行为## CCF(今年竟然没有写辱骂类字眼的,不过写ccf一样die)**S00013**```cpp#define IloveCCF ios::sync_with_stdio(0);19 行未改动**S00477**```cpp//CCF HAVE NO EGG```---笔者警示后人:一定不要在比赛里写**ccf**,会涉嫌违规---## 无限循环**S00317,S00392**在代码中写下了while(1)```cppwhile(1){cout<<"These are too difficult!";}```**S00115**的结局应该是显而易见的```cppwhile('O'+'c'+'t'+31!='D'+'e'+'c'+25 and 1031!=1225){cout<<"GIVE ME 1=!!!"<<endl;}```