[CSP-S 2024] 迷惑行为大赏

· · 生活·游记

前言

我没得什么分析文件的工具,三年前自己用 C++ 写了一个 186 行的,很难用,如果有什么建议我会采纳的。

粗言秽语

[0]

[3]

fuck

GD-Senior\answers\GD-S01369\color\color.cpp第44行
GD-Senior\answers\GD-S01544\detect\detect.cpp第108行
GD-Senior\answers\GD-S02925\detect\detect.cpp第36行
    return 0;
}
//I fuck CCF

//      cout << "FUCKYOU \n";
        for(int i = 1;i <= n;i++)
                        ff = true;
                        //cout << "FUCK\n";
                        break;

[4]

damn

GD-Senior\answers\GD-S00937\detect\detect.cpp第23行
GD-Senior\answers\GD-S00937\detect\detect.cpp第35行
GD-Senior\answers\GD-S00937\detect\detect.cpp第47行
GD-Senior\answers\GD-S00937\detect\detect.cpp第47行
        int damn = 0;
        for (int i = 0;i < N;i++){
            bool flag = false;
            for (int j = lower_bound(m,m+M,d[i])-m;j < M;j++){
//              int sped = sqrt(pow(v[i],2)+2.0*a[i]*(m[j]-d[i]));
//              if (i == 3 && j == 2){
//                  cout << i << " " << j << endl;
//                  cout << sped << endl;
//              }
                if (pow(v[i],2)+2.0*a[i]*(m[j]-d[i]) > V*V){
                    jisuan[i][j]=true;
                    if (!flag){
                        damn++;
                    }
                    flag = true;
                }
            }
        }
//      for (int i = 0;i < N;i++){
//          for (int j = 0;j < M;j++){
//              cout << jisuan[i][j] << ' ';
//          }
//          cout << endl;
//      }
        cout << damn << ' ' << M-damn << endl;
    }
    return 0;
} 

[12]

shit

GD-Senior\answers\GD-S03127\duel\duel.cpp第2行
GD-Senior\answers\GD-S03127\duel\duel.cpp第4行
GD-Senior\answers\GD-S03127\detect\detect.cpp第2行
GD-Senior\answers\GD-S03127\detect\detect.cpp第4行
GD-Senior\answers\GD-S03127\color\color.cpp第2行
GD-Senior\answers\GD-S03127\color\color.cpp第4行
GD-Senior\answers\GD-S03127\arena\arena.cpp第2行
GD-Senior\answers\GD-S03127\arena\arena.cpp第4行
GD-Senior\answers\GD-S03165\color\color.cpp第60行
GD-Senior\answers\GD-S03494\duel\duel.cpp第17行
GD-Senior\answers\GD-S03494\duel\duel.cpp第25行
GD-Senior\answers\GD-S03494\duel\duel.cpp第30行

GD-S03127 识别错了,果然还是 雪之下雪乃 的问题(

#define Yukinoshita namespace
#define Yukino std
using Yukinoshita Yukino;

GD-S03165 也识别错了,“真是太棒了”。

//  system("FC color1.out color1.ans");
    freopen("color.in","r",stdin);//只有两个样例,zhenshitaibangle
    freopen("color.out","w",stdout);

GD-S03494 还识别错了,为什么不使用 is_hit 啊?

        if(atk[i])continue;
        bool ishit = false;
        for(int j = 0;j < n;j++){