@attack666
2019-04-22T08:37:36.000000Z
字数 246
阅读 718
30% n <= 1000
100% n <=
同余方程 ax = b (mod p)
int rand() {
int x = gao();
return x;
}
1. 如果不指定种子,返回结果相同
srand((unsigned)time(0)); 每秒刷新
2. [0, 32768)
int rnd() {
return rand() << 15 | rand();
}
:loop
rand.exe
baoli.exe > b.out
std.exe > c.out
fc b.out c.out
if not errorlevel 1 goto loop
pause