Page 1 of 2
944 - Happy Numbers
Posted: Sun Jul 22, 2007 9:29 pm
by bishop
i solved 10591
it seem me like that
i solve like that problem
judge show WA
Posted: Mon Jul 23, 2007 8:41 am
by rio
Every line contains two positive integers between 1 and 99999 each
There is a case which lower limit is 1. (checked by assert())
The statement should include term "inclusive".
ADD : There is also a case which H < L.
ADD : Please change the title to "944 Happy numbers".
----
Rio
check
Posted: Mon Jul 23, 2007 9:01 am
by bishop
i do that but still WA
next code that post
Posted: Mon Jul 23, 2007 9:07 am
by rio
Some io test case.
INPUT
OUTPUT
----
Rio
Posted: Mon Jul 23, 2007 3:33 pm
by Roger Isanta
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
Posted: Mon Jul 23, 2007 3:45 pm
by Roger Isanta
Bishop try this in/out:
IN:
1111 1120
OUT:
1112 7
1114 6
1115 5
then why for WA944
Posted: Mon Jul 23, 2007 8:16 pm
by bishop
all are checked
but it show WA
Posted: Mon Jul 23, 2007 9:11 pm
by Roger Isanta
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
Posted: Tue Jul 24, 2007 5:02 pm
by bishop
thanx
roger isanta && rio
thanx for input output
Description
Posted: Sat Nov 03, 2007 2:31 am
by mohsincsedu
Input
The input has two lines which contain a positive integer between 1 and 99999 each; the first integer, L, is the low limit of the closed interval; the second one, H, is the high limit
why multiple i/o??
Posted: Mon Nov 12, 2007 8:31 pm
by shakil
Why WA. PLease help......
Posted: Tue Nov 13, 2007 9:03 pm
by Jan
newlines should be printed between cases.
Make me cruel...
Posted: Fri Jun 20, 2008 7:29 am
by Rocky
Hi,
I cant find any bug in my code...can any one give any hints wht is tricks behind it.
i check all the cases in the board but still wA..
thanks in advance
Rocky
Re: 944 - Happy number--Got acc
Posted: Sun Jun 22, 2008 7:07 pm
by Rocky
Thnx
Got Ac Now.
Rocky
Re: 944 - Happy number
Posted: Mon Jan 10, 2011 1:26 pm
by kissu parina
just dont output a blank line after the last case and i also swaped the values if L>H
hope it helps
