注:如果不想上电视可以私信我删除。
今年第一次做,使用 VSCode 查找。
本场比赛所有代码中有超过 个 //freopen。
为什么呢?因为 GD-J02081 的 number.cpp 里面有 个 //freopen。此人代码 1159KB,默哀。
为了保证准确性,我删去了他代码里面的所有 //freopen。之后有:
- 超过 个
freopen。 - 个文件中有 个
//freopen,没数有几个诈骗犯。其中 GD-J00631 四题均是注释freopen,默哀。 - 个文件中有 个
#define int long long,其中我贡献了 个。 - 个文件中有 个
while。 - 个文件中有 个
struct。 - 个文件中有 个
luogu。
其中,有 个人留下了洛谷账号:
盒
GD-J00020=1357680
GD-J00054=GD-S00057=845367
GD-J00137=GD-S00139=1422155
GD-J00162=GD-S00162=944843
GD-J00448=GD-S00410=974005
GD-J00724=GD-S00661=1346586
GD-J00729=1439381
GD-J00806=1485346
GD-J00810=1340395
GD-J00877=840762
GD-J01018=1653348
GD-J01166=1384934
GD-J01215=934048
GD-J01369=GD-S01234=1379404
GD-J01480=1047636
GD-J01935=513746
GD-J02047=1129279
GD-J02082=883803
GD-J02094=723036
GD-J02332=1373205
GD-J02579=752017
GD-J02585=1833687
GD-J02710=1062508
GD-J02815=993044
GD-J02890=1771759
GD-J03241=1076971
GD-J03296=1236589
GD-J03386=862989
GD-J03498=GD-S03177=1145044
GD-J03670=980618
GD-J03876=1246673
GD-J03970=1056231
GD-J04004=1057454
GD-J04012=1049103
GD-S00028=642434
GD-S00195=818165
GD-S01159=807846
GD-S01165=1058410
GD-S01573=1416713
GD-S01643=608273
GD-S01697=578398
GD-S01711=775951
GD-S01738=513746
GD-S01869=723036
GD-S02121=1530321
GD-S02151=1401495
GD-S02772=215572
GD-S02776=1611353
GD-S02984=1320771
GD-S03311=676569
GD-S03679=1178681其实还不止,因为我是按搜索 luogu 关键词来找的。我也留了洛谷账号(可以找找我喵!)
下面是正式部分。
暴戾语言合集
- 个文件中有 个
fuck。 - 个文件中有 个
shit。 - 个文件中有 个
nmsl。
GD-J00178 polygon.cpp(外加代码长度 110KB & cout<<<1)
#include <bits/stdc++.h>
using namespace std;
#define explode return
#define fuck 1
int a[5005],n,cnt;
int main(){
freopen("polygon.in","r",stdin);
freopen("polygon.out","w",stdout);
while(1){
cnt++;
if(cnt=1145414154) break;
}
while(1){
cnt++;
if(cnt=1145414154) break;
}
......
while(1){
cnt++;
if(cnt=1145414154) break;
}
while(1){
cnt++;
if(cnt=1145414154) break;
}
cout<<<1;
while(1);
explode fuck;
}GD-J00759 seat.cpp & xor.cpp & polygon.cpp
//fuck you,CCFGD-J00784 所有四题
void fuck(){
freopen("number.in","r",stdin);
freopen("number.out","w",stdout);
return;
}其它题目对应替换文操。
GD-J01330 seat.cpp
//cout<<"fuck ccf\n";GD-J01374 polygon.cpp
/*这题我大概能拿到40左右的部分分,这会总分就到了240,第三题一点都不想做
时间不到10点,充足的很
这题我有另一个疯狂的想法
如果先全排列,然后去判断每一种排列符不符合要求即可
但我不会全排列的写法
全排列大概是O(n^3)吧,也比我这个2^n好很多了(应该大概是n^3吧?)
第一题更是sort一下就过了
第二题打个简单模拟也能满,数据范围摆在那里了
第三题不会
话说这次考试竟然一道多测都没有
CCF换出题人了?
感觉今年的难度比去年低一些,或许240还不够2=
希望大家都考的比我好
也希望能看到迷惑行为大赏里面有我
不过我可能很少会上luogu了
学c++大概5年了,考了大概3年还是4年,s组每年都靠运进去,但今年复习s组却差了2分晋级
明年我就高中了,要开始复习whk了,希望今年不留什么遗憾吧
by zh_iieee
还有fuck CCF 也不怕这个禁赛3年了
10:30
做了一下第三题,不会
说不定交上去能拿10分
就这样吧,今年的csp就到这里吧,唯一能算的遗憾是忘记了全排列怎么写
明年再见,如果我还考的话,我会在不会的题里面写while(1)
祝各位来年好运
*/ GD-J01630 xor.cpp
bool cmp(ad fuck,ad ccf){
return fuck.l>ccf.l;
}GD-J01749 polygon.cpp
#include<bits/stdc++.h>
using namespace std;
int n,ans;
int ccf[5010],num[5010],mx=-114514,vis[5010];
void ccfnmsl(int x,int y){
if(y==x){
int fl=0;
for(int i=1;i<=x;i++)fl+=num[i];
if(fl>=mx*2)ans++;
}
for(int i=y;i<=x;i++){
if(vis[ccf[i]]==0){
vis[ccf[i]]=1;
num[i]=ccf[i];
mx=max(mx,num[i]);
vis[ccf[i]]=0;
}
}
}
int main(){
freopen("polygon.in","r",stdin);
freopen("polygon.out","w",stdout);
cin>>n;
for(int i=1;i<=n;i++)cin>>ccf[i];
for(int i=3;i<=n;i++){
ccfnmsl(i,0);
}
cout<<ans;
return 0;
} (以上为代码全文。)
GD-J02081 seat.cpp & xor.cpp(外加字符画)
seat.cpp:
//have you guys found that if you look at the squares in T2 you can find gray dots?
//AWA
//a bit shit,but finish in 20minxor.cpp:
for(int j = 1;j <= n;j ++){//fuck it p can start from any place that takes 35
......
/*
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!! !!!! !!!! !!!!! !!! !! !!!!!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!! !!!!!!!!! !!!! !!!! !!!!!!!! ! !!!!!!!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!! !!!! !!!! !!!! !!!!!!!! !!!!!!!!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!! !!!!!!!!! !!!! !!!! !!!!!!!! ! !!!!!!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!! !!!!!!!!!! !!!!!! !!! !!! !!!!!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!!!!!!!!!!!!!!! !!!!!!! !!!!!! !!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!!!!!!!!!!!!! !!!!!!!!!!! !!!!!!!!!!!! !!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!!!!!!!!!!!!! !!!!!!!!!!! !!!!!!!!!!!! !!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!!!!!!!!!!!!! !!!!!!!!!!! !!!!!!!!!!!! !!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!!!!!!!!!!!!!! !!!!!! !!!!!! !!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
*/这一堆感叹号什么意思?粘贴到 IDE 里面就能看到字符画。
GD-J02496 polygon.cpp
#include <bits/stdc++.h>
using namespace std;
int main() {
freopen("polygon.in", "r", stdin);
freopen("polygon.in", "w", stdout);
// please give me 100 points :(;
// who made this shit question
// i wanna kill you
// totally a shit question
// holy shit
// it's really hard
// why
// nooooooo
// fu** the polygon
// fu**
// fu**
// fu** your ***
int n;
cin >> n;
for(int i=1;i<=n;i++) {
int tmp;
cin >> tmp;
}
cout << 0;
return 0;
}(以上为代码全文。)
GD-J02677 polygon.cpp
#if IloveCCF==1
while(1) cout<<"CCF I love(fuck) you.\n";
#endif
#if you_have_no_egg==1
while(1) cout<<"You have on egg.\n";
#endifGD-J02832 seat.cpp & polygon.cpp
seat.cpp:
#include<bits/stdc++.h>
#define ll long long
using namespace std;
ll n,m,c,r,i,j,pd,fuck,a[111],seat[11][11],step=1;
bool cmp(ll x,ll y){
return x>y;
}
int main(){
freopen("seat.in","r",stdin);
freopen("seat.out","w",stdout);
cin>>n>>m;
for(i=1;i<=n*m;i++){
cin>>a[i];
}
fuck=a[1];
cin>>c>>r;
sort(a+1,a+n*m+1,cmp);
for(j=1;j<=m;j++){
if(pd%2==0){
for(i=1;i<=n;i++){
seat[j][i]=a[step++];
}
}else{
for(i=n;i;i--){
seat[j][i]=a[step++];
}
}
pd++;
}
for(i=1;i<=n;i++){
for(j=1;j<=m;j++){
if(seat[i][j]==fuck){
cout<<i<<' '<<j;
return 0;
}
}
}
return 0;
}polygon.cpp:
#include<bits/stdc++.h>
#define mn 5001
#define mod 998244353
using namespace std;
int n,a[mn],b[mn],m,i,step=3,ans,fuck;
int main(){
freopen("polygon.in","r",stdin);
freopen("polygon.out","w",stdout);
cin>>n;
for(i=1;i<=n;i++){
cin>>a[i];
cout<<a[i]<<' ';
b[i]=a[i];
}
cout<<endl;
for(i=1;i<=n;i++){
a[i]+=a[i-1];
b[i]=max(b[i],b[i-1]);
}
for(i=1;i<=n;i++){
cout<<a[i]<<' ';
}
cout<<endl;
while(step<=n){
fuck=0;
for(i=step;i<=n;i++){
if(a[i]-a[fuck]>2*b[i]){
cout<<step<<' '<<a[i]-a[fuck]<<endl;
ans++;
}
fuck++;
}
step++;
}
cout<<ans%mod;
return 0;
}(以上均为代码全文。)
GD-J03570 xor.cpp
#include <bits/stdc++.h>
using namespace std;
int a[500001];
int main()
{
freopen("xor.in","r",stdin);
freopen("xor.out","w",stdout);
int n,k;
cin >> n >> k;
for(int i=1;i<=n;i++) cin >> a[i];
string x="I don't know what is it.Can you help me?";
for(int i=1;i<=n;i++)
{
if(a[i]!=1 && n%2==0)
{
x="fuck.";
}
else if(a[i]!=1 && n%2!=0) x="what?What are you saying?";
}
cout << x;
fclose(stdin);
fclose(stdout);
return 0;
}(以上为代码全文。)
GD-J03614 所有四题
//fucking CCFGD-J03866 polygon.cpp
//CCF nmslGD-S01608 road.cpp
//cout << "Fucking v" << v << endl;
......
//cout << "fucking i" << i << endl; GD-S02631 club.cpp
//I am so fuck!GD-S02927 replace.cpp
//cout<<"fuck!";
......
//if(x==0 and i==1) cout<<"fuck! "<<f<<endl;GD-S03055 club.cpp
bool tmp(clubnum fuck,clubnum CCF){
if(fuck.a!=CCF.a)return fuck.a>CCF.a;
else if(fuck.b!=CCF.b)return fuck.b>CCF.b;
else return fuck.c>CCF.c;
}