一如既往:如有侵权或不适请私信我撤下。
今年 CQ 市共有 名 OIer 参加了提高组。写出了 份有意义的代码(检索到至少一个 #include)。虽然参加的人数变多了,但有意义的代码数量相对于去年来说减少了。
令人遗憾的是,本次清理了文件夹中不为题目名称的文件。所以我们无法找到文件名写错的源文件了。
对他的打击比 freopen 写错还大
检索正则 //[ ]*freopen,在 个文件中检索到 个结果。我把用这种方式手动检阅到的代码放在这个标题下。
CQ-S00034 的 road.cpp 全文。我也要退役了,满足你的愿望 qwq。
#include<bits/stdc++.h>
using namespace std;
namespace hyh {
const int N = 1e4, M = 1e6;
int n, m, k;
struct ovo {
int x, w;
bool operator < (const ovo d) const {
return w > d.w;
}
};
vector<ovo> e[M];
signed main() {
// freopen("road.in", "r", stdin);
// freopen("road.out", "w", stdout);
// 我故意的 我afo了 记得把我放上去哦
cin >> n >> m >> k;
for (int i = 1; i <= m; i++) {
int u, v, w;
}
return 0;
}
}
signed main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
return hyh::main();
}
//决斗!
//byd我跟你报了
//started in 16:51 → /fad
//没这么冷静
//从十三年前的横空出世
//再到两年前的意外相遇
//最后是一分钟前的
//颠覆世界的一万三千亩玫瑰凋落了
//可你的长夏却永不会落下
//下一个瞬间
//也请你
//CQ-S00139 的代码框架:
// #define DXN
signed main(){
// freopen("rd.out","r",stdin);
#ifndef DXN
freopen("road.in","r",stdin);
freopen("road.out","w",stdout);
#endif
#ifdef NXD
int t=read();while(t--)
#endif
gs();
return 0;
}CQ-S00152 的 employ.cpp 代码末注释:
/*
// freopen("employ.in", "r", stdin);
// freopen("employ.out", "w", stdout);
#pragma #pragma #pragma #pragma #pragma #pragma #pragma #pragma #pragma #pragma #pragma #pragma #pragma #pragma #pragma #pragma
#define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define
// freopen("emlpoy.in", "r", stdin);
// freopen("emlpoy.out", "w", stdout);
Hello, I am a OIer that isn`t get lots of points in this problem.(1294410)
I want to get 200 pts so that I can atend NOIP, but I can`t.
I only can atend NOIP at senior high school.
emm...
See you next year if I won`t AFO.
And give this song to someone(wz):
Take my hand now
Stay close to me
Be my lover
Won`t you let me go
Close your eyes now
And you will see
There is a rainbow
For you and me
*/而上面:
void subtask2() { // He was died...
...
}
void subtask3() { // He was died, too...
...
}CQ-S00183 的 employ.cpp,为冲正解失败的勇士默哀:
fv sol() {
...//这里有一个长达 62 行的 dp,但是无法通过样例 1
}
int main() {
// freopen("employ.in", "r", stdin);
// freopen("employ.out", "w", stdout);
IOS;
i32 T = 1;
// cin >> T;
while (T--) sol();
}
CQ-S00240:
#include<bits/stdc++.h>
using namespace std;
// wei ren min fu wu CQ-S00279:
//忘了最小生成树怎么打了 怎么办......
//完蛋了www,唯有的48分被吃了 CQ-S00356 的 club.cpp:
/*#include<bits/stdc++.h>
using namespace std;
int p=0;
//void dfs(int x,int y,int z)
//{
// p++;
// if(p>=5)
// {
// sum=max(sum,)
// }
//}
int main()
{
//freopen("club.in","r",stdin);
//freopen("club.out","w",stdout);
int n,t,a[100001][100001],b[100001],c[100001],sum=0,ans;
cin>>t;
for(int i=1;i<=t;i++)
{
cin>>n;
for(int j=1;j<=n;j++)
{
for(int w=1;w<=3;w++)
cin>>a[j][w];
}
//dfs(a[1][1],a[1][2],a[1][3]);
cout<<sum<<" ";
}
return 0;
}*/
//A
#include<bits/stdc++.h>
using namespace std;
int main()
{
freopen("club.in","r",stdin);
freopen("club.out","w",stdout);
int n,t,a[100001],b[100001],c[100001];
cin>>t;
for(int i=1;i<=t;i++)
{
cin>>n;
for(int j=1;j<=n;j++)
cin>>a[j]>>b[j]>>c[j];
int sum=0;
sort(a,a+n+1);
for(int j=n;j>n/2;j--)
sum+=a[j];
cout<<sum<<endl;
}
return 0;
}//*/
而这是他的 employ.cpp,我也不知道为什么要把上面的代码又粘一遍:
/*#include<bits/stdc++.h>
using namespace std;
int p=0;
//void dfs(int x,int y,int z)
//{
// p++;
// if(p>=5)
// {
// sum=max(sum,)
// }
//}
int main()
{
//freopen("club.in","r",stdin);
//freopen("club.out","w",stdout);
int n,t,a[100001][100001],b[100001],c[100001],sum=0,ans;
cin>>t;
for(int i=1;i<=t;i++)
{
cin>>n;
for(int j=1;j<=n;j++)
{
for(int w=1;w<=3;w++)
cin>>a[j][w];
}
//dfs(a[1][1],a[1][2],a[1][3]);
cout<<sum<<" ";
}
return 0;
}*/
/*#include<bits/stdc++.h>
using namespace std;
int p=0;
//void dfs(int x,int y,int z)
//{
// p++;
// if(p>=5)
// {
// sum=max(sum,)
// }
//}
int main()
{
//freopen("club.in","r",stdin);
//freopen("club.out","w",stdout);
int n,t,a[100001][100001],b[100001],c[100001],sum=0,ans;
cin>>t;
for(int i=1;i<=t;i++)
{
cin>>n;
for(int j=1;j<=n;j++)
{
for(int w=1;w<=3;w++)
cin>>a[j][w];
}
//dfs(a[1][1],a[1][2],a[1][3]);
cout<<sum<<" ";
}
return 0;
}*/
#include<bits/stdc++.h>
using namespace std;
int main()
{
freopen("employ.in","r",stdin);
freopen("employ.out","w",stdout);
int n,m,a[1000],ans=0,k,jjy;
long long sum=1;
cin>>n>>m;
string s;
cin>>s;
for(int i=1;i<=n;i++)
{
cin>>a[i];
if(a[i]!=0)
ans++;
}
sort(a,a+n+2);
k=ans-m;
for(int i=1;i<=n;i++)
if(a[i]<=k)
{
jjy=i;
if(a[i]>k)
break;
}
//cout<<jjy;
/*for(int i=1;i<=n;i++)
cout<<a[i]<<" ";
//cout<<ans;
*/
if(ans>=m)
{
for(int i=1;i<=m;i++)
{
sum*=ans;
ans--;
}
cout<<sum%998244353;
return 0;
}
/*if(ans>m)
{
for(int i=1;i<=ans;i++)
{
sum*=m;
m--;
}
}*
*/
return 0;
}
而这是他的 replace.cpp,这是第三遍了!
/*#include<bits/stdc++.h>
using namespace std;
int p=0;
//void dfs(int x,int y,int z)
//{
// p++;
// if(p>=5)
// {
// sum=max(sum,)
// }
//}
int main()
{
//freopen("club.in","r",stdin);
//freopen("club.out","w",stdout);
int n,t,a[100001][100001],b[100001],c[100001],sum=0,ans;
cin>>t;
for(int i=1;i<=t;i++)
{
cin>>n;
for(int j=1;j<=n;j++)
{
for(int w=1;w<=3;w++)
cin>>a[j][w];
}
//dfs(a[1][1],a[1][2],a[1][3]);
cout<<sum<<" ";
}
return 0;
}*/
/*#include<bits/stdc++.h>
using namespace std;
int p=0;
//void dfs(int x,int y,int z)
//{
// p++;
// if(p>=5)
// {
// sum=max(sum,)
// }
//}
int main()
{
//freopen("club.in","r",stdin);
//freopen("club.out","w",stdout);
int n,t,a[100001][100001],b[100001],c[100001],sum=0,ans;
cin>>t;
for(int i=1;i<=t;i++)
{
cin>>n;
for(int j=1;j<=n;j++)
{
for(int w=1;w<=3;w++)
cin>>a[j][w];
}
//dfs(a[1][1],a[1][2],a[1][3]);
cout<<sum<<" ";
}
return 0;
}*/
/*#include<bits/stdc++.h>
using namespace std;
int p=0;
//void dfs(int x,int y,int z)
//{
// p++;
// if(p>=5)
// {
// sum=max(sum,)
// }
//}
int main()
{
//freopen("club.in","r",stdin);
//freopen("club.out","w",stdout);
int n,t,a[100001][100001],b[100001],c[100001],sum=0,ans;
cin>>t;
for(int i=1;i<=t;i++)
{
cin>>n;
for(int j=1;j<=n;j++)
{
for(int w=1;w<=3;w++)
cin>>a[j][w];
}
//dfs(a[1][1],a[1][2],a[1][3]);
cout<<sum<<" ";
}
return 0;
}*/
#include<bits/stdc++.h>
using namespace std;
int main()
{
freopen("replace.in","r",stdin);
freopen("replace.out","w",stdout);
long long n,q;
string a,b;
cin>>n>>q;
for(int i=1;i<=n;i++)
cin>>a>>b;
for(int i=1;i<=q;i++)
cin>>a>>b;
for(int i=1;i<=q;i++)
cout<<0<<endl;
return 0;
}
CQ-S00491:
/*
啊?2.148e8???你告诉我是这个复杂度???还只给1000ms。无语ing……(15:32)
希望评测机能跑得快一点吧,球球了,我T1都没有做出来,看着是贪心,结果写完才发现第三个样例不对,气鼠我了!(15:44)
哦,我刚刚才发现是3.048e7,算错了,唬我一脸……(16:45)
我觉得我想出正解了,3.024e7,应该能过吧……(16:55)
我好像又又又又算错时间复杂度了(17:04)
啊啊啊为什么大样例超时了!!!(17:58)
哦!我又又又知道了!有些步骤根本不需要!(17:58)
服了,为什么第2个大样例输出0啊!!!!!我要爆零了!!!!!!!!!!!我T1崩溃不想做了!!!T2只过了小样例!(18:28)
*/CQ-S00565,诈骗中:
//froepen("employ.cpp","r",stdin)
//freoepm("employ.out","w",stdin)
//CSP AK me
//rp+=inf
//#include <bits\stdc++.h>
//#inculde <bits/stdc++.h>
//freopen
//const int mod=998244853;
//qwq awa qaq
//queueforces
//orz
//How to dp a permutation?????????
//qwq
//qwqwq
//qwqwqwq
//qwqwqwqwq
//qwqwqwqwqwq
//qwqwqwqwqwqwq
//qwqwqwqwqwqwqwq
//qwqwqwqwqwqwqwqwq
//qwqwqwqwqwqwqwqwqwq
//qwqwqwqwqwqwqwqwqwqwq
//qwqwqwqwqwqwqwqwqwqwqwqCQ-S00609:
/*
//freopen
//froepen
//fropen
//fopen
//freopen("employ.in", "w", stdin);
//freopen("employ.in", "r", stdout);
//freopen("employ.out", "r", stdin);
*/