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

做的时候却可以把n压成1000或1001呢?

Posted by heaven229 at 2009-10-11 15:51:51 on Problem 1322
为什么那道题目的n的范围是10^6
做的时候却可以把它压成1000或1001呢?

if (n>1000)
		{
			if (n%2)	n = 1001;
			else		n = 1000;
		}

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