本次 CSP GD 共有约 个同学参加,在第二轮为 CCF 贡献了约 元。
正文
长代码篇(大于 100k)
滚木滚木滚木滚木滚木滚木滚木(GD-S01569)
//employ.cpp
#include<iostream>
using namespace std;
int main()
{
//此处省略 25'000'000 行左右的空行和 Tab
}
脸滚键盘(GD-S3166)
//club.cpp
//省略正常代码部分
/*
DP[i,j,k]=max(Dp[i-1,j-1,k]+a[i],Dp[i-1,j,k-1]+b[i],Dp[i-1,j,k]+c[i])
DP[i,j]=max(DP[i-1,j-1]+a[i],)
3
4
4 2 1
3 2 4
5 3 4
3 5 1
4
0 1 0
0 1 0
0 2 0
0 2 0
2
10 9 8
4 0 0
------ ------- ------
18961
15344
16178
19722
10557
17976
13424
8769
9953
16441
死了,忘修改怎么写了
//dsoiuoijsuguhgfduhgdffffffffffffffffffffff(*~5000)这次不写注释了,炸 CCF 去了.jpg(GD-S01029)
//road.cpp
#include <bits/stdc++.h>
using namespace std;
#define f(i,a,b) for(int i=a;i<=b;i++);
long long n,m,k,op=1000000;
int main(){
freopen("road.in","r",stdin);
freopen("road.out","w",stdout);
cin>>m>>n>>k;
f(i,1,m){
long long a,b,c;
cin>>a>>b>>c;
}
f(i,1,k){
long long a,b;
cin>>a;
f(i,1,m)cin>>b;
}
while(op--){
cout<<"fiasohfosahfoiasfoahfoahoifhaoifhaiogheohgioehaoghoihaghphgnfdzvklmvokzjkjdojgppogjjeppwjapwjpejagoejwopgjpaopfjjq[gj[weogj[agjfvflkvcxklnvklxndlfjgsgjcklxvknd;gj;gjpoeigpojgpojgiojiasgj;ldslg;jsapojeopjgagfkgkajkgkdglksagj"<<"aujfiafuifhihdafhaiheuhgrgaugfuigaapaghpgerpuguwgwaoigioeghhdfgndfjvndfvkndkanvokadghaoegiehgwagrgasdhg;"<<endl;
//有的兄弟,有的,这样的句子还有 ~2500 句。
}
return 1;
}这次连代码都不写了,直接复制大样例了(GD-S02414)
//employ.cpp
37375 27578
iuj iit
jnzspf vkyewp
nxuevbvp ddrdlzmy
vpeplmmye xsdqlspol
cvndka jlwmet
znnr fzcv
btweqfstl kfqtjotpb
f h
fvxgrpvh pjxbxglm
pxnyqbkdsh upuhuhrtag
oqgwykr iljzuvi
xrr nnl
...有的兄弟,有的,这样的大样例人还有九个(GD-J02441)
#include<bits/stdc++.h>
using namespace std;
string a1="2 1 0 3";
string a2="2 1 0 3";
string a3="2 1 0 3";
//后面是大样例的输入
int main(){
//freopen("xor.in","r",stdin);
//freopen("xor.out","w",stdout);
int n,k;
string s;
cin>>n>>k;
cin>>s;
if(n==4&&k==2&&s==a1){
cout<<2;
}
if(n==4&&k==3&&s==a2){
cout<<2;
}
if(n==4&&k==0&&s==a3){
cout<<1;
}
if(n==100&&k==1&&s==a4){
cout<<63;
}
if(n==985&&k==55&&s==a5){
cout<<69;
}
if(n==197457&&k==222&&s==a6){
cout<<12701;
}
return 0;
}
三周目(GD-J00334)
//xor.cpp
//2025 CSP-J t3 xor.cpp by ACGO - Dark_eve
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
string input = "";
ll n,k,tmp;
string inputList[7] = {
""
,"4 2 2 1 0 3"
,"4 3 2 1 0 3"
,"4 0 2 1 0 3"
,"..."
,"..."
,"..."//省略大样例
string outputList[7] = {
""
,"2"
,"2"
,"1"
,"63"
,"69"
,"12701"
};
string str(ll x){
if(x <= 0) return "0";
string ret = "";
while(x > 0){
ret = (char)(x % 10 + '0') + ret;
x /= 10;
}
return ret;
}
int main(){
freopen("xor.in","r",stdin);
freopen("xor.out","w",stdout);
cin >> n >> k;
input = str(n) + " " + str(k) + " ";
for(ll i = 0;i < n;i++){
cin >> tmp;
input += str(tmp);
if(i != (n - 1)) input += " ";
}
auto ans = find(inputList,inputList + 7,input);
if(ans == inputList + 7){
return 0;
}
int local = ans - inputList;
cout << outputList[local];
return 0;
}四周目,这个如果没有注释还有救(GD-J01729)
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 5e5 + 10;
ll n, k, ans, a[N], s[N];
vector<pair<int, int> > g;//存可求出答案的坐标
bool cmp(pair<int, int> a, pair<int, int> b){
return a.first < b.first;
}
int main(){
freopen("xor.in", "r", stdin);
freopen("xor.out", "w", stdout);
cin >> n >> k;
for(int i = 1; i <= n; i++) {
cin >> a[i];
s[i] = s[i - 1] ^ a[i];
}
for(int i = 0; i < n; i++){
for(int l = 1; l <= n - i; l++){
int r = l + i;
if(s[r] ^ s[l - 1] == k){
g.push_back({l, r});
}
}
}
sort(g.begin(), g.end(), cmp);
int num = 0;
for(int i = 0; i < g.size(); i++){
if(g[i].second >= g[i + 1].first){
num++;
continue;
}
if(num)
ans++;
ans++;
num = 0;
}
cout << ans;
return 0;
}
//后面是注释掉的大样例还有卡评测高手(GD-J00178)
#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-J00069)
四题都是差不多的。
#include<bits/stdc++.h>
using namespace std;
int n=5;
int m='290es1q';
int main(){
cin>>n
cout<<sifnfefss5;
for (int i=1;i<=n*m;cin>>a[i++]);
int t=a[1];for (int i=1;i<=n*m;cin>>a[i++]);
int t=a[1];
sort(signed main(){for (int i=1;i<=n*m;cin>>a[i++]);
int t=a[1];
sort(signed main(){for (int i=1;i<=n*m;cin>>a[i++]);
int t=a[1];
sort(signed main(){for (int i=1;i<=n*m;cin>>a[i++]);
int t=a[1];
sort(signed main(){h胡椒粉和防护还会for (int i=1;i<=n*m;cin>>a[i++]);
int t=a[1];
sort(signed main(){u
sort(signed main(){jijiawfadaudadyaudgaud=
else if;
cin>>
cout<<92100;
return 0;#include<bits/stdc++.h>
using namespace std;
int n=5;
int m='290es1q';
int main(){
cin>>n
cout<<sifnfefss5;
for (int i=1;i<=n*m;cin>>a[i++]);
int t=a[1];for (int i=1;i<=n*m;cin>>a[i++]);
int t=a[1];
sort(signed main(){for (int i=1;i<=n*m;cin>>a[i++]);
int t=a[1];rwrwwr839ru
sort(signed main(){for (int i=1;i<=n*m;cin>>a[i++]);
int t=a[1];
sort(signed main(){for (int i=1;i<=n*m;cin>>a[i++]);
int t=a[1];
sort(signed main(){h胡椒粉和防护还会for (int i=1;i<=n*m;cin>>a[i++]);
int t=a[1];
sort(signed main(){u
sort(signed main(){jiji
else if;
cin>>
cout<<92100;
return 0;
}#include<bits/stdc++.h>
using namespace std;
int n=5;
int m='290es1q';
...