跳到正文

Re_FYCCCCTA

923403

Think twice code once. 2011FYCCCTA / FallingFYC_ / Re_FYCCCCTA

这是 2026年11月2日 存档的第 3 版,不是当前版本。查看当前版本

资料、奖项与版本

资料

编号
923403
抓取

奖项

2025 CSP-J
一等奖
2025 CSP-S
一等奖
2024 CSP-J
一等奖
2024 CSP-S
二等奖
120 分 · 第 8585 名

版本

  1. v8当前
  2. v7
  3. v6
  4. v5
更早的 4 个版本
  1. v4
  2. v3
  3. v2
  4. v1

以后打 OI 赛制的模拟赛先把所有题目读一遍及时跳题

C++
#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;
}
C++
#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);
}

经验总结:

  • 注意空间限制。(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)