HL CSP-S2023 迷惑行为大赏

· · 个人记录

HL 迷惑行为大赏(大庆考点)

大庆考点覆盖范围包括大庆及齐齐哈尔考生,哈尔滨考点迷惑行为请见(好像这篇已经开始更大庆考点的了): HL 迷惑行为大赏 - by Piggy424008

显眼包

忘删其他文件

恭喜全场唯一幸运儿,忘删的整整齐齐

注释大赏

//freopen

do forget freopen 是真的难绷。

共三人代码注释掉了 freopen,其中一人寄的彻彻底底。

12 个结果 - 6 文件

HL-S00035\struct\struct.cpp:
  19    //do forget freopen 
  20:   //freopen("struct.in","r",stdin);
  21:   //freopen("struct.out","w",stdout);
  22    mp['byte']=1,mp['short']=2,mp['int']=4,mp['long']=8;

HL-S00083\struct\struct.cpp:
  3  int main(){
  4:    //freopen("struct.in","r",stdin);
  5:    //freopen("struct.out","w",stdout);
  6     int n,op;

HL-S00103\lock\lock.cpp:
  3  int main(){
  4:    //freopen("lock.in","r",stdin);
  5:    //freopen("lock.out","w",stdout);
  6     long long n;

HL-S00103\struct\struct.cpp:
  3  int main(){
  4:    //freopen("lock.in","r",stdin);
  5:    //freopen("lock.out","w",stdout);
  6     long long n;

HL-S00103\tree\tree.cpp:
  3  int main(){
  4:    //freopen("lock.in","r",stdin);
  5:    //freopen("lock.out","w",stdout);
  6     long long n;

HL-S00103\tree\struct\struct.cpp:
  3  int main(){
  4:    //freopen("lock.in","r",stdin);
  5:    //freopen("lock.out","w",stdout);
  6     long long n;

精神分裂

不好评价,自行欣赏。

HL-S00035\game\game.cpp:
  12    if(t1+t2>=(x2-x1)/2){
  13:       //r1[i]++,l1[j]++;
  14        ans+=befo;

  20  int main(){
  21:   //don't forget freopen
  22    freopen("game.in","r",stdin);

  42                if(w[i-j]!=w[i+j]) {
  43:                   //c[i]=r;
  44                    break;

  56            for(int j=i+4;j<=2*n-2-i;j+=2){
  57:               //printf("%lld\n",ans);
  58                dfs(i,j,1);

HL-S00035\lock\lock.cpp:
  5  int main(){
  6:    //don't forget freopen
  7     freopen("lock.in","r",stdin);

HL-S00035\struct\struct.cpp:
  18  int main(){
  19:   //do forget freopen 
  20:   //freopen("struct.in","r",stdin);
  21:   //freopen("struct.out","w",stdout);
  22    mp['byte']=1,mp['short']=2,mp['int']=4,mp['long']=8;

HL-S00035\tree\tree.cpp:
  23  int main(){
  24:   //don't forget freopen
  25    freopen("tree.in","r",stdin);

乱码

� 搜出来的不太准,摆了。

随机

没有出现 mt19937 的代码。

rand

靠阳寿过题各有各的方法。

20 个结果 - 3 文件

HL-S00015\tree\tree.cpp:
   8  using namespace std;
   9: int random(int start ,int end)
  10  {
  11    end++;
  12:   int res=start+(end-start)*rand()/RAND_MAX+1.0;
  13    return res;

  18    freopen("tree.out","w",stdout);
  19:   srand(unsigned(time(0)));
  20:   printf("%d\n",random(1,100));
  21    return 0;

HL-S00045\struct\struct.cpp:
   6    freopen("struct.out", "w", stdout);
   7:   srand(time(0));
   8    scanf("%d", &T);

  12        if(opt == 1){
  13:           printf("%d %d\n", (rand() - (rand() & 7)), (1 << rand() % 4));
  14            while(T--) printf("ERR\n");

HL-S00045\tree\tree.cpp:
  5     freopen("tree.out", "w", stdout);
  6:    srand(time(0));
  7:    for(int i = 1;i <= 100;i++) ans = (rand() * rand() + ans * (rand() - rand() * rand()));
  8:    printf("%d", std::min(std::min(abs(ans), abs(rand() * rand())), (1 << 29) ^ (1 << rand() % 29) + (1 << rand() % 16) + (1382171 ^ rand())));
  9     return 0;

CCF

无结果。

homo

114514

2 个结果 - 2 文件

HL-S00012\game\game.cpp:
  2  using namespace std;
  3: char a[1145140];
  4  int n;

HL-S00166\struct\struct.cpp:
  32    {
  33:   cout<<"114514";
  34    }

1919810

无结果。

待更。