Search found 3 matches

by Roger Isanta
Mon Jul 23, 2007 9:11 pm
Forum: Volume 9 (900-999)
Topic: 944 - Happy Numbers
Replies: 20
Views: 16634

Hi bishop,

the only thing I think is wrong in your code is that you output a new line after each case, while it should be between each case.

The input has been changed and now it's correct. Try now.

Roger
by Roger Isanta
Mon Jul 23, 2007 3:45 pm
Forum: Volume 9 (900-999)
Topic: 944 - Happy Numbers
Replies: 20
Views: 16634

Bishop try this in/out:

IN:
1111 1120

OUT:
1112 7
1114 6
1115 5
by Roger Isanta
Mon Jul 23, 2007 3:33 pm
Forum: Volume 9 (900-999)
Topic: 944 - Happy Numbers
Replies: 20
Views: 16634

Hi,
I did the input, and Rio, you are right. Thanks.

There's a case in which L>H, this is going to be fixed, so that all test cases are L<=H.

However, this is not the reason why bishop is getting WA.

Roger

Go to advanced search