写个对拍程序的时候生成随机数的模板留在这儿
#include <cstdio> #include <ctime> #include <cstring> #include <cstdlib> #define Int(x, y) (rand() % (y-x+1) + x) int x; int main() { freopen("debug.in", "w", stdout); srand((int)time(0)); x = Int(1, 100); return 0; }
时间: 2024-10-29 16:48:07