Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

贴对拍程序!

Posted by 18357 at 2014-09-25 10:15:28 on Problem 1947
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator