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 |
贴对拍程序!In Reply To:贴数据生成器! Posted by:18357 at 2014-09-25 10:15:04 #include <cstdio> #include <cstring> #include <algorithm> #include <cstdlib> #include <ctime> using namespace std; int main() { int i; for(i=1;i<=1000;i++) { printf("Case %03d : ",i); system("rand"); system("a"); system("b"); if(system("fc a.out b.out >NULL")==0)printf("AC\n"); else { printf("WA!!!\n"); return 0; } } return 0; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator