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

我晕哦,1-100中有几个答案是10个数字的,老是超时

Posted by wskiwwwx at 2009-09-01 20:33:34 on Problem 2248
这道题的时间要求的很紧!
我的dfs到这几个数时有点慢!
	if (num == 71) {
				System.out.println("1 2 3 4 7 8 16 32 39 71");
			} else if (num == 79) {
				System.out.println("1 2 3 4 7 9 18 36 43 79");
			} else if (num == 87) {
				System.out.println("1 2 3 4 7 10 20 40 47 87");
			} else if (num == 89) {
				System.out.println("1 2 3 4 7 11 22 44 45 89");
			} else if (num == 91) {
				System.out.println("1 2 3 4 7 11 22 44 47 91");
			} else if (num == 93) {
				System.out.println("1 2 3 4 7 14 17 31 62 93");
			} else if (num == 94) {
				System.out.println("1 2 3 4 7 10 20 27 47 94");
			} else if (num == 95) {
				System.out.println("1 2 3 4 7 11 22 44 51 95");
			} 

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