跳到正文

生活·游记

2021 NOIP 上海迷惑行为大赏

昒昕约 20 分钟
原文
文章信息与版本

文章信息

发布
2021年11月20日
收录
2025年12月12日
更新
2026年11月14日
篇幅
约 20 分钟
获赞
11

版本

  1. v1当前

2021 NOIP 上海迷惑行为大赏

编者:昒昕

前言

本文为 NOIP2021 迷惑行为大赏 的 SH0。

继上回 2021 CSP-S SH 迷惑行为大赏,本次小编又带来了 NOIP 的迷惑行为。

场外选手流泪了。

今年因为不想罚坐一个下午,所以就懒得报了。

晚上拿到题目的时候,五分钟 T1 70pts70 pts,半小时 T3 20pts20 pts。

谁知道今年出那么简单/kk。

因为是一个一个翻了,翻了好多,所以把迷惑代码全都归类了,希望这种写文方法大家能喜欢 qwq。

话说 SH 的整活选手真的不多诶。(

只要你笑了,我这篇文章就是值得的。


upd:2021-12-01

前排提醒各位整活人:

辱骂有风险,整活需谨慎。

link1 | link2 | link3 | link4

随便弄个整活就够了,没必要辱骂,反正我只要看到就会摘录上去的。(


upd:2021-12-04

冲到某乎热搜前十了。

link

不做评价,这篇文章的初衷是让大家开心。


基本信息

2021\textrm{2021} 年 NOIP\textrm{NOIP} 的比赛时间为 20212021 年 1111 月 2020 日 8:30-13:00\textrm{8:30-13:00}。

上海的准考证号为 SH-0001∼SH-0378\textrm{SH-0001} \sim \textrm{SH-0378}。

本次比赛共有四道题目,分别为 number,sequence,variance,chess。

其中 13321332 份代码含有 include,include 的出现次数为 16951695 次。

共有43784378 次 return,13581358 次 main,7979 次 qwq,55 次 qaq。

一共有 331331 次 998244353(T2取模数),4444 次 114514,33 次 1919810。

22 位选手在代码里打了 AFO,祝好。

11 个 love,是某位选手number 的数组名 clearlove7。如何评价 SH 没有表白人这一现象

没有 .pas 后缀的代码/kk。


施工日记:

2021-11-20:创建该文&加入二十多个迷惑代码

2021-11-21:又加入二十多个迷惑代码+整理结构


一、常规篇(1~7)

  1. 经 典 永 流 传

    共有 77 位选手,祝好。

  2. 无 名 文 件 人

    chess 代码

    C++
    	freopen(".in","r",stdin);
    	freopen(".out","r",stdout);
  3. 调 试 代 码 人

    C++
    	FILE*fin,*fout;
    	fin=fopen("sequence1.in","r");
    	fout=fopen("sequence.out","w");
  4. 只 进 不 出 人

    C++
    	freopen("variance.in","r",stdin);
    	//freopen("variance.out","w",stdout);
  5. qqgg return 人

    C++
    	freopen("chess.in","r",stdin);   
    	freopen("chess.out","w",stdout);
    	return 114514;
  6. 回 车 人

    C++
       freopen("number.in\n" , "r" , stdin);
       freopen("number.out\n" , "w" , stdout);
  7. 五 个 文 件 夹 人


二、qqgg 故意行为篇(8~16)

  1. 电 风 扇 人

    C++
    int dfs(int la)//电风扇
    {

    其实大放水也是

  2. 摆 烂 人

    C++
    	return 0;
    }
    //不调了,摆烂QAQ 
  3. 自 知 之 明 人

    C++
    //可能是水,马力有限50pts (听说有人会收集迷惑操作?) 

    没错就是我

  4. 一 场 空 人

    C++
    int main()
    {
    	十年OI一场空,不开longlong见祖宗 
    	return 0;
    } 
  5. kkk 人

  6. hhhc 人

  7. xxs 人

    C++
    void xxs() {
  8. cp 人

    C++
    void cp (ll *x, ll *y)
  9. 我 看 不 懂,但 我 大 受 震 撼

    C++
    // IronHeart@413A
    
    // 摆大烂!!!AFO。 
    
    #include 《bits、stdC嘉嘉。h》
    
    #diana int = long———long 
    
    int 嘉然() {
    	int ans = 零, neg = 负一; char ch = getchar();
    	while (ch < '0' 或 ch > '9') { ???怎么写啊
    	while (ch ≥ '0' and ch ≤'9') ans *= 10;ans += getchar()-零的 ASCII 码; 
    	return ans + neg;
    }
    
    puts(“嘉然今天吃什么”); \\ qwq 
    int dia = 嘉然(), na = 嘉然;
    gets("%数\n", dia 加上 na);
    return int; // 好习惯,不能 return int 以外的其他东西   

    嘉心糖都是这样写代码的吗。(


三、祖 安 人 + 祈 福 人(17~24)

  1. 辱 骂 T1 人

    C++
    //There aren't too many numbers without any 7. CCF is good.
    //This question is very good. 
    //Go on, CCF! More good problems like this!
    //I finished this problem in 30 minutes!
    //It is easier than DULIU CSP-S!
  2. 祖 安 T2 人(手动加 *)

    C++
    }
    //WHY T2 IS SO F**KING HARD
  3. 常 规 祖 安 人(手动加 *)

    C++
    //CCF n**l
    #include <bits/stdc++.h>

    又是这个,没有新意

  4. 许愿数据水人

    chess 代码。

    C++
    //貌似还是有点小问题
    //只能期待数据水一点了。。 

    我也觉得这次数据恒水

  5. 故 意 CE 人 + 辱 骂 €€£ 人 + 预 言 家 (手动加 *)

    C++
    #include<bits/stdc++.h>
    #include<bits\stdc++.h>
    using namespace std;
    uisng namespace std;
    int mian()
    int main()
    {
    	//freopen("chess.in","r",stdin);
    	//freopen("chess.out","w",stdout);
    	froepen("chess.in","r",stdin);
    	froepen("chess.out","w",stdout);
    	freopen("chess.txt","r",stdin);
    	freopen("chess.txt","w",stdout);
    	freopen("chess2.in","r",stdin);
    	freopen("chess2.out","w",stdout);
    	freopen("chess.in","r",stdout);
    	freopen("chess.out","w",stdin);
    	freopen("qiju.in","r",stdin);
    	freopen("qiju.out","w",stdout);
    	
    	你必能看到 ! 
    	
    	pvzTFyyds
    	.........
    	... . . .
    	. . . . .
    	.   .   .
    	.   .
        	.
    	generals.io rank 73
    	
    	ccf,rnm,tq
    	f**k
    	int _______________________________;
    	
    	
    	
    	//fclose(stdin);
    	//fclose(stdout);
    	
    	
    	return 0;
    	return o;
    	//return 0; 
    } 

    我看不懂,但我大受震撼

  6. 辱骂人(手动加 *)

    C++
    //L***u will be funky; F**K CCF

    不同意!洛谷将会留芳万年!

  7. 认 爹 人

    C++
    /*
    咱们呢
    也不奢望什么
    n = 4的时候
    dfs就已经炸了
    所以说
    咱们拿个3*4=12分
    就走人吧
    希望数据n=4的时候不要太变态
    因为当a【】=1 8 9 10的时候
    程序就已经炸了
    求求你了
    给点分吧
    哥哥
    我的ccf好大哥
    你是我爹
    */
  8. 膜 拜 人

C++
    cout<<"NOIp RP++!!!!!!"<<endl;
    cout<<"ZJGS bless me get 1=!"<<endl;
    cout<<"ZJGS bless me go to WC!!!"<<endl;
    cout<<"ZJGS bless me no explode 0!!!"<<endl;
    cout<<"STO   €€£   OTZ";

四、考场游记+作文+放歌篇(25~30)

  1. 祝好

    C++
    freopen("chess.in","r",stdin);
    freopen("chess.out","w",stdout);
    cin>>n>>m>>q;
    //You know... I know how to write the AC program... But there is no time...
    //As we all know, a DS problem can be like an giant simulation problem.
    //Bye, AC. Hello, 32pts.
  2. 考 场 游 记 人

    C++
    //number
    //There aren't too many numbers without any 7. CCF is good.
    //This question is very good. 
    //Go on, CCF! More good problems like this!
    //I finished this problem in 30 minutes!
    //It is easier than DULIU CSP-S!
    //O(xuanxue + T*log(xuanxue))
    C++
    //sequence
    //emm...It seems to be duliu.
    //k=1 is NOT easy.
    //O(2^{n/2} * n^2)? may the correct answer.
    //now solve: 2^a1+2^a2+...+2^an = S, only one answer.
    C++
    //variance
    //fangcha = n * (sum ai^2) - (sum ai)^2
    //this is a wrong solution.
  3. 名 言 人

    C++
    //Stop learning useless algorithms, go and solve some problems, learn how to use binary search. 

    upd:经评论区提醒发现是 um_nik 的名言。


  1. Legends Never Die\textrm{Legends Never Die} 人

    C++
    /*lengends never die
    when the world is calling you
    can you hear them screaming out your name
    legends never die
    they become apart of you
    every time you bleed for reaching greatness
    rentless you survive
    you neve lose hope when everything's cold and fightings near
    it's deep in their bones they'll run into the somke where the fire is fierce
    oh pick yourself up cause*/ 

  1. Never Gonna Give You Up\textrm{Never Gonna Give You Up} 人

    C++
    int v[105];//never gonna give you up~~~~~

  1. Awaken\textrm{Awaken} 人

    C++
    /*The night backons while you dream
    A life never lives in peace.
    As you stand upon the edges,
    woven by a single thread.
    And the fate may fall down upon you,
    while the devil is knocking, 
    right at your door.
    So all you restless,
    each night you hear the drums of war
    Awaken
    Awaken
    The voice begins to call you while you hunger
    The taste of desteny you are searching for
    Awaken
    Awaken
    The fight is at your door to go cause
    Awaken
    ...
    Awaken
    As you stand upon the edges,
    hanging in balance
    And the fate may fall down upon you all
    while the devil is knocking
    so all you restless
    each night you hear the drums of war
    Awaken
    Awaken
    the night begins to call you while you hunger
    the taste of desteny you are seaching for
    Awaken
    Awaken
    Awaken */

    upd:经评论区提醒,发现是 2019 英雄联盟新赛季宣传曲 Awaken\textrm{Awaken}。


五、代 码 错 误 篇 + 打 表 篇(31~43)

  1. 输 错 MOD 人

    C++
    const ll Mod=99824353;

    应该是 998244353998244353 啊。

  2. /n 人 + 奇 怪 printf 用 法 人

    C++
    freopen("chess.in", "r", stdin);
    freopen("chess.out", "w", stdout);
    cin >> t;
    if(t == 1)
    	printf("%d/n%d/n%d/n%d/n%d/n", "4", "3", "3","3", "2");
    if(t == 2)
    	printf("%d/n%d/n%d/n%d/n%d/n%d/n%d/n", "3", "4", "4","2","5","5","1");	
  3. 孤 注 一 掷 人

    C++
    freopen("sequence.in","r",stdin);
    freopen("sequence.out","w",stdout);
    const int mod=998244353,maxn=100010;
    int n,m,k,a[maxn];
    cin>>n>>m>>k;
    for(int i=1;i<=m+1;i++) cin>>a[i];
    srand(time(0));
    cout<<rand()%mod+1;

    说实话,买百万彩票中奖的概率都比AC概率高。

  4. 更 孤 注 一 掷 人

    C++
    freopen("sequence.out","w",stdout);
    cout<<abs((rand()*998244353*114514*18874151574)%998244353);
  5. ull->ll 人

    C++
    typedef unsigned long long ull;
    ull fangchamin;
    ...
    printf("%lld",fangchamin);

    这个也是常犯的错误哇。

  6. 脱 裤 子 放 屁 人

    C++
    #define endl '\n'
    #define puts("") printf("\n")
    #define cout <<" " printf(" ")
    #define write(x) scanf("%d",&x)
  7. 脱 裤 子 放 屁 人 2 + MLE 人

    C++
    #include <bits/stdc++.h>
    using namespace std;
    int t;
    int route[2001][2001][2001][2001];
    int main(){
    	cin>>t;
    	for(int l=1;l<=t;l++)
    	return 0;
    }
  8. 脱 裤 子 放 屁 人 3

  9. 脱 裤 子 放 屁 人 4

    C++
    char str1[N],str2[N];
    int now,grid[N],col[N],lv[N],x[N],y[N],rode[N][4];;
    bool vis[N];
    int main() {
    	memset(str1,0,sizeof(str1)); 
    	memset(str2,0,sizeof(str2));
    	memset(rode,0,sizeof(rode));
    	memset(x,0,sizeof(x));
    	memset(y,0,sizeof(y));
    	memset(col,0,sizeof(col));
    	memset(lv,0,sizeof(lv));
    	memset(grid,0,sizeof(grid));

SH 大概有五十多份打表代码,这里选几个比较有代表性的。(

  1. 打 表 十 万 行

  2. 打 表 五 万 行

    你们都不知道有文件大小限制的吗

    开这个文件的时候,旁边的360突然从64%到99%

    密集恐惧症患者原地去逝

  3. 打 表 一 行 人

  4. 最 大 文 件 人

    恭喜这位同学,凭着 38.1 MB\textrm{38.1 MB} 的大小,获得压倒性的胜利!

    里边是一个很长很长的 0101 数组,然后把我的 DEV 和 VSC 都卡崩了,对没错我的电脑蓝屏了,然后这篇博文写一半没保存……

    最后重启了一下,作死用 Notepad++ 看的。

    可以自己脑补一下打开会是什么样的。(


后记

如果乐意,可以在评论区留下自己想要被记录 / 发现别人的的迷惑行为。如果你的代码已经被记录在文章中,欢迎评论。

如果你的代码被选中了但不想被放出,可以私信编者删除。


NOIP,是一个新旧交替的过程:总有一些人会暂时退出。

那些暂时退出的那些同学,

作为还在 OI 圈里的我们,只能祝他们在未来创造更好的成绩。

我们还要祝那些刚刚启程的人:

要加油啊,你们是新的希望!


原文
存档评论30 条抓取于