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

WA的可以进来看看

Posted by zerocpp at 2011-04-07 00:05:16 on Problem 3672
		int cnt = 0;
		switch (s[0]) {
			case 'u':
				cnt = u+d;
				break;
			case 'f':
				cnt = f+f;//注意要双程!
				break;
			case 'd':
				cnt = d+u;
				break;
			default:
				break;
		}
		if (flag) {
			if (sum + cnt <= m) sum += cnt, ++ res;
			else flag = 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