#include <bits/stdc++.h>
using namespace std;
using ll=long long;
using pii=pair<int,int>;
#define FOR(i,a,b) for(int i=(a),EEE##i=(b); i<=EEE##i; i++)
#define REV(i,a,b) for(int i=(a),EEE##i=(b); i>=EEE##i; i--)
#define endl '\n'
#ifndef ONLINE_JUDGE
template<typename T>
void outval_(string s,int p,const T& t){cerr<<s.substr(p,s.size()-p)<<"="<<t<<endl;}
template<typename T,typename... Args>
void outval_(string s,int p,const T& t, const Args &...rest){
while(s[p]!=','){cerr<<s[p++];} cerr<<"="<<t<<", ";
outval_(s,p+1,rest...);}
#define outval(...) outval_(#__VA_ARGS__,0,__VA_ARGS__)
#define outarr(aaa,beqwqq,edqwqq)\
{cerr<<(#aaa)<<": "; FOR(iii,beqwqq,edqwqq) cerr<<'['<<iii<<']'<<'='<<aaa[iii]<<" "; cerr<<endl;}
#endif
#ifdef ONLINE_JUDGE
#define outval(...) ((void)0)
#define outarr(...) ((void)0)
#endif
bool Mbe;
bool Med;
int main(){
#ifndef ONLINE_JUDGE
freopen("in.txt","r",stdin);
#endif
ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
cerr<<endl<<fixed<<setprecision(3)<<abs(&Med-&Mbe)/1048576.0<<" MB\n";
return 0;
}#include<unistd.h>
FOR(i,1,100){
system("./gen > input.txt");
system("./t1 < input.txt > out1.txt");
system("./t2 < input.txt > out2.txt");
if(system("diff out1.txt out2.txt")){
cout<<"WA!\n";
break;
}
cout<<"AC!\n";
sleep(1);
}以后打 OI 赛制的模拟赛先把所有题目读一遍及时跳题
经验总结:
-
注意空间限制。(CSP-J2025 T4 -100 pts)
-
时刻记住,打正式比赛的目的是拿尽可能多的分数而非钻研正解。(CSP-S2025 T1)
-
以后如果自己默认了一个结论是正确的一定要质疑一下自己这是不是真的是对的。(CSP-S2025 T1)
-
打 OI 赛制的比赛一定要打满暴力。(CSP-S2025)
-
注意力集中一点,看看错误的数据的调试结果中是不是有什么数字通过运算后能得到另一个数字。(NOIP2025 T1)
-
如果自己预期一个题就是要打暴力,那么不要将数组开小,有可能之后补特殊性质时忘改了。(NOIP2025 T2 -28 pts)
-
看清楚题目要求。(NOIP2025 T3 - 8 pts)
-
注意特殊性质的启发。(NOIP2025 T4)