GZ CSP2024 迷惑行为大赏

· · 休闲·娱乐

在来自 GZ 的 490 人中,在 4.5 小时内,总共写下了 1473 个 freopen,1456 个 bits/stdc++.h,361 个 fclose,174 个 iostream,69 个 cstdio,84 个 algorithm,29 个 cmath,160 个 define。可以肯定的是,GZ 人民的整体素质是非常高的。但是,以上的可怜的统计数据表明,GZ 的 OI 事业还需加强。

接下来是各位~喜闻乐见~的迷惑行为!

arena.cpp:

long long ans,m,n,num,p[100004],n[200004],x,y,a,b,c,d;
string s;
int main()
{
    ......
    scanf("%lld%lld",&m,&n);
    for(int i=1;i<=m;i++)
    {
            scanf("%lld",&n[i]);
    }
   ......
}
#include <bits/stdc++.h>
using namespace std;
int main(){
    freopen("arena.in","r",strin);
    freopen("arena.in","r",strin);
    cout<<2;
    return 0;
}

#include <bits/stdc++.h>
using namespace std;
int main(){
    freopen("color.in","r",strin);
    freopen("color.in","r",strin);
    cout<<3<<' '<<3;
    return 0;
}

#include <bits/stdc++.h>
using namespace std;
int main(){
    freopen("detect.in","r",strin);
    freopen("detect.in","r",strin);
    cout<<1<<'\n'<<0<<'\n'<<8;
    return 0;
}

#include <bits/stdc++.h>
using namespace std;
int main(){
    freopen("duel.in","r",strin);
    freopen("duel.in","r",strin);
    cout<<5<<'\n'<<19<<'\n'<<7<<'\n'<<1;
    return 0;
}
duel.cpp:

int main(){
    fro("duel.in","r",stdin);
    fro("duel.out","w",stdout);
    scanf("%ld",&n);
……
}

detect.cpp:

int main(){
    fro("detect.in","r",stdin);
    fro("detect.out","w",stdout);
    scanf("%d",&T);
……
}
#include<bits/stdc++.h>
using namespace std;
using ll=long long;
set<int> s;
int n,x[200005],o[200005],ans,cnt;
int main(){
   // freopen("duel.in","r",stdin);
   // freopen("duel.out","w",stdout);
 ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    cin>>n;
    for(int i=1;i<=n;i++){
        int a;cin>>a;
        s.insert(a);
        x[a]++,o[a]++;
    }
……
}
#include <bits/stdc++.h>
using namespace std;

int T, m, n, L, V;
struct car{
    int d, v, a;
    int l, r;
}p[10005];
int c[10005];

int finding(car x){
    for(int i = 1; i <= m; i++){
        if(p[i] >= x.l && p[i] <= x.r){
            //叫你超速是吧,坐下!
            return 1;
        }
    }
    //算你小子走运,以后别让我逮着你
    return 0;
}
#include<queue>
#include<vector>
#include<cstdio>
#include<cstring>
#include<iostream>
#include<algorithm>

using namespace std;

const int N=1e5+10;

int T;

struct car{
    int d,v,a;
    bool operator <(const car &C)const{
        return d<C.d;
    }
}c[N];

int p[N];

int main(){
    freopen("detect3.in","r",stdin);
    freopen("detect.out","w",stdout);
……
}
arena.cpp:

#include<bits/stdc++.h>
using namespace std;
int n,m[100010];
int main(){
    ios::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    //freopen("duel.in","r",stdin);
    //freopen("duel.out","w",stdout);
    cin>>n;
……
}

color.cpp:

#include<bits/stdc++.h>
using namespace std;
int T,n;
struct Num{
    int a;
    bool cl;
}num[100010];
int main(){
    ios::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    //freopen("duel.in","r",stdin);
    //freopen("duel.out","w",stdout);
    cin>>T;
……
}
arena.cpp:


// 反正今年是来玩的反正今年是来玩的反正今年是来玩的反正今年是来玩的反正今年是来玩的反正今年是来玩的反正今年是来玩的反正今年是来玩的反正今年是来玩的反正今年是来玩的反正今年是来玩的 

int main() {
    freopen("arena.in","r",stdin) ;
    freopen("arena.out","w",stdout) ;
    cin >> n ;
    for ( int i = 1 ; i <= n ; i++ ){
        cout << 1 << endl ;
    }
    return 0 ;
}

color.cpp:

// 哇塞脑子要爆掉了也
// 我卜要考细甲甲我要回家。。。
// 头真的痛
// 哎哟我天 试试贪心吧。。(尽管不是对的)
// 好吧水平超高的我连贪心都做不出来哈哈
// 哈哈乱做出来了一个不知道是什么的东西,不管,反正给的样例二的第一个点是对的。
// 到此为止吧我真棒。
// 无所谓了无所谓了反正是来玩的。 
// 时间复杂度吓死人。
……
for ( int i = 1 ; i <= n ; i++ ) {
                cin >> a[i].v ; // 求脑子不痛教程。。
                same[a[i].v]++ ;
                a[i].c = 1 ;
                tmp[i].d = i ;
                tmp[i].v = a[i].v ;
                // 前面的那个人莫名其妙地放了个响屁。。。有点吓人。
                a[i].d = last[a[i].v] ;
                last[a[i].v] = i ;
            }
            sort(tmp+1,tmp+1+n) ;
//      mnx = tmp[1].d ;
            int xb = 1 ;
            for ( int i = 1 ; i <= n ; i++ ) { // p[i]存的是第i大的数的下标
                if ( p[xb-1].v != tmp[i].v ) { // 屁王已经放了三个屁了。。因为就在我前面。
                    p[xb].v = tmp[i].v ;
                    p[xb].pm = tmp[i].d ;
                    xb++ ;
                }
            }
……
// 开始乱做
                    for ( int i = 1 ; i <= n ; i++ ) {
                        for ( int j = i-1 ; j >= 1 ; j-- ) {
                            if ( a[j].c == a[i].c ) {
                                // 他怎么又放了一个屁。。。屁王。
                                if ( a[j].v == a[i].v ) ans += a[j].v ;
                                else break ;
                            }
                        }
                    }
……

detect.cpp:

#include <bits/stdc++.h>
using namespace std ;

int main(){
    freopen("detect.in","r",stdin) ;
    freopen("detect.out","w",stdout) ;
    // 反正今年是来玩的反正今年是来玩的反正今年是来玩的反正今年是来玩的反正今年是来玩的反正今年是来玩的反正今年是来玩的反正今年是来玩的反正今年是来玩的反正今年是来玩的反正今年是来玩的反正今年是来玩的反正今年是来玩的反正今年是来玩的反正今年是来玩的反正今年是来玩的反正今年是来玩的反正今年是来玩的反正今年是来玩的反正今年是来玩的 
    return 0 ;
}

duel.cpp:

// 呆子分析二十分钟懂了? 不是动规,而是简单的队列??毕竟他只是求最小值。。
// 我简直就是爵士大若之。 
#include <bits/stdc++.h>
using namespace std ;
#inclcude<bits/stdc++.h>
using namespace std;
int main(){

    return 0;
}
#include <bits/stdc++.h>
using namespace std;
long long q,n,m,L,V,d,v,a;
long long n1[10000050],p[10000050];
int main(){
    freopen("detect.in", "r", stdin);
    freopen("detect.out", "w", stdout);
    cin>>q;
    for(int i=1;i<=q;i++){
        cin>>n,m,L,V;
        for(int i=1;i<=n*V;i++){
            cin>>n1[i];
        }
        for(int i=1;i<=m;i++){
            cin>>p[i];
        }
    }
    cout<<"2149 1605"<<endl;
    cout<<"2354 1241"<<endl;       
    cout<<"2909 2440"<<endl;       
    cout<<"2266 2263"<<endl;
    cout<<"2990 2098"<<endl;
    cout<<"163 905"<<endl;
    cout<<"1915 587"<<endl;
    cout<<"1384 286"<<endl;
    cout<<"0 2556"<<endl;
    cout<<"1066 2711"<<endl;
    cout<<"17388 80637"<<endl;
    cout<<"16426 70725"<<endl; 
    cout<<"19783 57044"<<endl;
    cout<<"67559 26319"<<endl;
    cout<<"53536 63393"<<endl;
    cout<<"55684 84811"<<endl; 
    cout<<"9911 74680"<<endl;
    cout<<"8092 80156"<<endl;
    cout<<"37099 71407"<<endl;
    cout<<"95747 63156"<<endl;
    return 0;
}