标签:acm
写个对拍程序的时候生成随机数的模板留在这儿
#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; }
标签:acm
原文地址:http://blog.csdn.net/j_sure/article/details/42169633