CSP-J/S 2026 第二轮 RP++!
累计通过数 800 祭:2025/12/5
其实早就 900 了,但是我忘了是哪一天达成的了所以不写祭了。
代码模板:
template
#include<bits/stdc++.h>
#define y0 y_0
#define y1 y_1
#define fi first
#define se second
#define endl '\n'
#define vec vector
#define em emplace
#define pb push_back
#define eb emplace_back
#define lc(x) x << 1
#define rc(x) x << 1 | 1
#define lowbit(x) ((x) & (-(x)))
#define popcount(x) __builtin_popcount(x)
#define ckmin(x, y) x = (x) <= (y) ? (x) : (y)
#define ckmax(x, y) x = (x) >= (y) ? (x) : (y)
#define debug(x) cerr << #x << " = " << x << endl
#define IOS ios::sync_with_stdio(0), cin.tie(0), cout.tie(0)
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
// #define MultiTest
const double EPS = 1e-8;
const int INF = 0x3f3f3f3f;
const ll LINF = 0x3f3f3f3f3f3f3f3f;
void prework() {
}
void solve() {
}
int main() {
IOS;
prework();
int T = 1;
#ifdef MultiTest
cin >> T;
#endif
while(T--)
solve();
return 0;
}对拍:
check.bat
gen.exe > data.in
brute.exe < data.in > brute.out
sol.exe < data.in > sol.out
fc brute.out sol.out
if errorlevel==1 pause
%0gen.cpp random
不要关闭同步流!!!
mt19937 gen(time(nullptr) + random_device{}());
uniform_int_distribution rng(1, RANGE);
int n = rng(gen);
cout << n << endl;