Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
附一个数据生成器#include<cstdio> #include<ctime> #include<cstdlib> int main() { srand(time(NULL)); freopen("1.txt","w",stdout); int cas=rand()%10+1; while (cas--) { int n=rand()%1000+1; printf("%d\n",n); while (n--) printf("%d %d %d\n",rand()%1000,rand()%1000,rand()%1000); } printf("0\n"); fclose(stdout); return 0; } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator