AH 普及迷惑行为大赏

· · 个人记录

本次共有 1524 人提交了代码,其中 int 出现了 INF 次(我的 vs 搜索上限好像只有20000),long long出现了 2630 次。

准考证写错人

我直呼好家伙

注释人:

一:

#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cmath>
using namespace std;
bool a[200001];
int n,m;
int l=1;
int find(int x)
{
    if(f[x]==x) return x;
    f[x]=find(f[x]);
    return f[x];
}
int main()
{
    //freopen("fruit.in","r",stdin);
    //freopen("fruit.out","w",stdout);
    scanf("%d",&n);
    for(int i=1;i<=n;++i)
    {
        scanf("%d",&a[i]);
        if(a[i]!=a[i-1])
        {
            int o=a[i-1];
            for(int j=i-1;j>=1;--j)
            {
                if(o==a[j]) fa[j]=i;
                else break;
            }
        }
        fn[i-1]=i;fl[i]=i-1;
    }
    for(int i=1;;++i)
    {
        int o=fa[l];
        int k=fn[o];
        printf("%d ",l);
        while(o!=0)
        {
            printf("%d ",k);

            if(f[o]==o) fn[fl[o]]=fn[f[o]],fl[fn[o]]=fl[o];
            o=fa[k];
            k=fn[o];
        }
        printf("\n");
    }
    return 0;
}

这位 AH-00006 的老兄抢了一个好的准考证号,却没能再次获得好的运气。
所以这就是我把他的代码全部放上来的原因???不,你看他并查集的fa数组和f在哪定义的……

二:

 #include<bits/stdc++.h>
using namespace std;
int main()
{
    //freopen("candy.in","r",stdin);
    //freopen("candy.out","w",stdout);
    ……
    return 0;
}

让你不写freopen只顾着写candy,这下甜够了没?

三:

#include<bits/stdc++.h>
using namespace std;
int n,i,a[200001],b[200001],ans;
int main()
{
    //freopen("frurt.in","r",stdin);
    //freopen("fruit.out","w",stdout);
    ……
}

这位00290的仁兄又成功地注释了freopen。

四:

#include<bits/stdc++.h>
using namespace std;
struct q{
    int next,head;
    int sum;
    int num;
}f[100000];
int main(){
    //freopen("fruit.in","r",stdin);
    //freopen("fruit.out","w",stdout);
    ……
    //fclose(stdin);
    //fclose(stdout);
}

又是一位注释freopen的,关键这位AH-00267的兄弟三四两题都是这样的……

正义人(

#include<bits/stdc++.h>
using namespace std;
int main()
{
    ……
}
//CSP 2021 RP++
//CCF fuck you mother

我只想说:oh, i is a english men

由于AH-00757的亮点太多了所以放在了剪贴板里。

话说我竟然只找到了 50 个 CCF,是不是有点少啊

逆行者

#include<bits/stdc++.h>
……
int main()
{
    freopen("fruit.in","r",stdin);
    freopen("fruit.out","r",stdout);
    ……
    return 0;
}

(来自AH-01282)

啊,这位AH-00075的打表人,您打了一百多行的表让本蒟蒻佩服,但很遗憾的告诉你:你也是个逆行者……

#include<cstdio>
……
int main()
{
……
freopen("fruit.in","r",stdin);
freopem("fruit.in","w",stdout);
……
if(i=0||i=1)
cout<<i<<" "<<endl;
……
return 0;
}

这位AH-00025的仁兄不仅把freopen打成了freopem,还出现了in","w的情况,而且他的if语句写得也很有个性啊。

输出样例人

#include<iostream>
#include<cstdio>
#include<bits/stdc++.h>
using namespace std;
char s[150],i;
int n;
int main()
{
    freopen("network.in","r",stdin);
    freopen("network.out","w",stdout);
    scanf("%d",&n);
    for(i=1;i<=n;i++)
    scanf("%d",&s[i]);

    if(n=5)
    {
        printf("OK");
        printf("FAIL");
        printf("1");
        printf("FAIL");
        printf("ERR");
    }
    if(n=10)
    {
        printf("OK");
        printf("1");
        printf("FAIL");
        printf("FAIL");
        printf("ERR");
        printf("ERR");
    }
    return 0;
}

来自AH-00002的倔强

然而,倔强了个寂寞:if(n=

膜拜人


@syksykCCC yyds!!!(感谢大佬@ZWYTYT补充)

写得有点少,欢迎大家评论/私信补充!