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

I Guess The Statement Is Wrong Check It Now!

Posted by chiperortiz at 2008-02-27 02:37:28 on Problem 2635
Hi The Problem Statement Say This

For each number K, if one of its factors are strictly less than the required L, your program should output "BAD p", where p is the smallest factor in K. Otherwise, it should output "GOOD". Cases should be separated by a line-break.

if one of its factors are strictly less than the required L??

Maybe Is Wrong Because In The Data Have This Cases

4 2
6 3

a). Prime Factors Of 4 Are 2,2! 2 Is Strictly Less That 2?? Not They Are Equals. the Output Should be Bad 2.

But The Right Output is GOOD!! Check It.!! If Prime Factors Are > x Print 
Bad x. OtherWise Print Good.

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