AH 提高迷惑行为大赏

· · 个人记录

写在前面:由于本人的水平与时间原因,写得很少,欢迎大家评论/私信补充!

相对于普及组,提高的人数就明显少多了,本次比赛只有 616 个人提交了答案,其中int共出现了 \texttt{INF} 次(我的 vsc 搜索上限只有 20000),long long 共出现了790 次,共有 4245 个 #include。

文件名打错人:

注释人:

#include<bits/stdc++.h>
using namespace std;
……
void ip(){
    ……
}

void brpd(){
    ……
}

void dfs(int x){
    ……
}

int main(){
    //freopen("bracket.in","r",stdin);
    //freopen("bracket.out","w",stdout);
    ip();
    dfs(0);
    cout<<ans-1;
    //fclose(stdin);
    //fclose(stdout);
    return 0;
}

不得不佩服这位 AH-00144 的搜索剪枝能力,码了 130 行,可惜,0pts 当场去世……

#include <bits/stdc++.h>
……
int test(char a[])
{
    ……
}

void dataup(char a[])
{
    ……
}

int main()
{
    //freopen("bracket.in","r",stdin);
    //freopen("bracket.out","w",stdout);
    ……
    //fclose(stdin);
    //fclose(stdout);
    return 0;
}

又是一位搜索大佬,不懂你们写那么多注释干嘛?为我垫分吗?那我谢谢了。

提高组注释 freopen 的果然不是很多,大概一共只有十几个人的样子。

考场游记人:

/*
 * airport.cpp
 * 
 * Copyright 2021 noi <noi@noi-Veriton-B450>
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA 02110-1301, USA.
 * 
 * 
 */


#include <bits/stdc++.h>
using namespace std;
int main()
{
    //freopen("airport.in","r",stdin)
    //freopen("airport.out","w",stdout)
    int n,m1,m2,c=10000;
    cin>>n>>m1>>m2;
    for(int a=1;a<=n;a++)
    for(int b=1;b<=n;b++)
    n=a+b;
    cout<<n<<" "<<m1<<" "<<m2<<endl;
    return 0;
}

本蒟蒻英文不太好,只注意到了您(AH-00617)的freopen注释掉了。所以有没有神犇评论翻译一下大意?
对了,再告诉您一件事:您四题的freopen都注释掉了……又是一个 0pts。

好吧你被骗了,这不是游记,只是一个 GNU 开源协议。(感谢大佬 @XYY1411)

正 义 之 士 (

本内容由浅入深。

#include<iostream>
……

int main()
{
    ……
}


//我弃疗了
//谢谢你CCF

啊这……我突然也好想弃疗啊……

#include<bits/stdc++.h>
……
#define CCFSB SB
int main()
{
    #ifdef CCFSB
    ……
}

凭你的宏定义我就知道你一定是豪杰啊!(bushi

#include <bits/stdc++.h>
……
inline ll read(){
    ……
}
……
int main(){
    ……
}
//I love CCF!!!
//Please give me some points!
//Else
//CCF is SB.

???I love CCF ?什么鬼?oh,原来还有ELSE啊。

//Here is SIXIANG's program
//He can't solve this problem
//He can't AC airprot, palin, bracket
//Goodbye~AFO~
//fffffffffffffffffffuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuckkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk!
#include <iostream>
#include <cstdio>
using namespace std;
int main() {
    freopen("traffic.in", "r", stdin);
    freopen("traffic.out", "w", stdout);
    while(1) cout << "WRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWRCCFXRWR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KKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKFUCKKKKKKKAFO" << endl;
    return 0; 
}

来自AFO人的怒吼。
???巨佬SIXIANG要退役了?不敢相信!(感谢大佬 @aleph_blanc)

#include <cstring>
#include <cstdio>
#include <iostream>
#include <algorithm>
#include <cstdlib>
#include <map>
#include <stack>
#include <queue>

using namespace std;

signed main() {
    freopen("bracket.in", "r", stdin);
    freopen("bracket.out", "w", stdout);
    printf("0");
    return 0;
}

/*
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
ccf nmsl 
*/

打了几十行您 copy 地不累吗?好吧,换做我我也不累!

#include "cstdio"
using namespace std;
int main (){
    freopen("bracket.in","r",stdin);
    freopen("bracket.out","w",stdout);
    int n,k;
    scanf ("%d%d",&n,&k);
    if (n==7&&k==3) printf ("5");
    else if (n==10&&k==2) printf ("19");
    else if (n==100&&k==18) printf ("860221334");
    else if (n==500&&k==57) printf ("546949722");
    else while (1) printf ("CCF去死");
    return 0;
}

全考场唯一一个中文辱骂中国收钱学会的?

#include "cstdio"
using namespace std;
int main (){
    freopen("traffic.in","r",stdin);
    freopen("traffic.out","w",stdout);
    int a,b,c;
    scanf ("%d%d%d",&a,&b,&c);
    if (a==2&&b==3&&c==1) printf ("12");
    else if (a==18&&b==18&&c==5) printf ("9184175\n181573\n895801\n498233\n0");
    else if (a==100&&b==95&&c==5) printf ("5810299\n509355\n1061715\n268217\n572334");
    else if (a==98&&b==100&&c==25) printf ("0\n2473\n355135\n200146\n41911\n441622\n525966\n356617\n575626\n652280\n229762\n234742\n3729\n272817\n244135\n597644\n2217\n197078\n534143\n70150\n91220\n521483\n180252\n72966\n1380");
    else if (a==470&&b==456&&c==5) printf ("5253800\n945306\n7225\n476287\n572399");
    else while (1) printf ("FUCK CCF!!!");
    return 0;
}

出现了!Fuck CCF yyds!!!

逆行者

#include<iostream>
……
int main()
{
    freopen("airport.in","w",stdin);
    freopen("airport.out","r",stdout);
    ……
    return 0;
}

致敬! * 1

#include<iostream>
#include<cmath>
#include<string>
#include<algorithm>
using namespace std;

int main()
{
    freopen("bracket.in","w","stdin")
    freopen("bracket.out","r","stdout")
    ……
}

致敬! * 2

#include<bits/stdc++.h>
using namespace std;
int n,k;
string s;
int main(){
    freopen("bracket.in","r",stdin);
    freopen("bracket.in","w",stdout);
    ……//省略超级长的打表代码
    return 0;   
}

致敬! * 3

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

致敬! * 4

宣传人

这位 AH-00025 的选手在每个程序的开头都写了这么一断话:

// Aknights ID:(guanfu  not bilibili!!!) Undertale#6499
// Welcome to make friends
// I really want Silverash!!!
// And 42 yyds
#include<bits/stdc++.h>// Aknights ID:(guanfu  not bilibili!!!) Undertale#6499
using namespace std;// Aknights ID:(guanfu  not bilibili!!!) Undertale#6499
inline int read(){// Aknights ID:(guanfu  not bilibili!!!) Undertale#6499
    int x=0,f=1;// Aknights ID:(guanfu  not bilibili!!!) Undertale#6499
    char ch=getchar();// Aknights ID:(guanfu  not bilibili!!!) Undertale#6499
    while(ch<'0'||ch>'9'){// Aknights ID:(guanfu  not bilibili!!!) Undertale#6499
        if(ch=='-')f=-1;// Aknights ID:(guanfu  not bilibili!!!) Undertale#6499
        ch=getchar();// Aknights ID:(guanfu  not bilibili!!!) Undertale#6499
    }// Aknights ID:(guanfu  not bilibili!!!) Undertale#6499
    while(ch>='0'&&ch<='9'){// Aknights ID:(guanfu  not bilibili!!!) Undertale#6499
        x=x*10+ch-'0';// Aknights ID:(guanfu  not bilibili!!!) Undertale#6499
        ch=getchar();// Aknights ID:(guanfu  not bilibili!!!) Undertale#6499
    }// Aknights ID:(guanfu  not bilibili!!!) Undertale#6499
    return x*f;// Aknights ID:(guanfu  not bilibili!!!) Undertale#6499
}// Aknights ID:(guanfu  not bilibili!!!) Undertale#6499
typedef long long ll;// Aknights ID:(guanfu  not bilibili!!!) Undertale#6499