Search found 1 match

by bugmans
Thu Apr 14, 2005 4:55 pm
Forum: Volume 105 (10500-10599)
Topic: 10591 - Happy Number
Replies: 61
Views: 31042

Got WA again

Here are some sample cases. Hope these helps you.

INPUT:

37

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
111
1111
11111
1000
100
10
101
1111111
10111111
11110111
22
55
99
109
10900
91
900001


OUTPUT:

Case #1: 1 is a Happy number.
Case #2: 2 is an Unhappy number.
Case #3: 3 is an Unhappy ...

Go to advanced search