[关闭]
@attack666 2019-04-22T00:37:36.000000Z 字数 246 阅读 631

对拍

30% n <= 1000

100% n <=

写暴力

造数据

  1. 同余方程 ax = b (mod p)
  2. int rand() {
  3. int x = gao();
  4. return x;
  5. }
  6. 1. 如果不指定种子,返回结果相同
  7. srand((unsigned)time(0)); 每秒刷新
  8. 2. [0, 32768)
  9. int rnd() {
  10. return rand() << 15 | rand();
  11. }

  1. :loop
  2. rand.exe
  3. baoli.exe > b.out
  4. std.exe > c.out
  5. fc b.out c.out
  6. if not errorlevel 1 goto loop
  7. pause
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注