hack 本题所有哈希题解
查看原帖
hack 本题所有哈希题解
679936
sunkuangzheng楼主2024/1/24 21:35
/**
 *    author: sunkuangzheng
 *    created: 12.01.2024 21:03:16
**/
#include<bits/stdc++.h>
#ifdef DEBUG_LOCAL
#include <mydebug/debug.h>
#endif
using ll = long long;
const int N = 5e5+5;
using namespace std;
int T,n,m,k;
int main(){
    ios::sync_with_stdio(0),cin.tie(0);
    int n = 10000;
    cout << n << "\n";
    for(int i = 1;i <= n;i ++) cout << __builtin_popcount(i - 1) % 2;
}

正确输出 5203652036,两篇哈希题解输出都偏大。

在 cf 上问到了一篇卡自然溢出的博客,基本这么造数据都能卡掉 :(

2024/1/24 21:35
加载中...