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 first at 2003-12-03 18:01:12 on Problem 1014
开始老是tle
最后加上这个就ac了
const int N=5;
		if(a[1]>=N)
			a[1]=(a[1]-N)%2==0?N:N+1;
		if(a[2]>=N)
			a[2]=(a[2]-N)%2==0?N:N+1;
		if(a[3]>=N)
			a[3]=(a[3]-N)%2==0?N:N+1;
		if(a[4]>=N)
			a[4]=(a[4]-N)%2==0?N:N+1;
		if(a[5]>=N)
			a[5]=(a[5]-N)%2==0?N:N+1;
		if(a[6]>=N)
			a[6]=(a[6]-N)%2==0?N:N+1;

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