Search found 1 match

by Hatty
Thu Oct 18, 2007 7:18 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 320305

Getting wrong answer, I dont know why...

Edit: Code removed. Thanks sapnil, didnt have to use long int though, as the challenge says that all numbers are below 1mil

It works, but I don't know why I get wrong answer...

hatty@study:~/dev/uva$ ./100
1 10
1 10 20
100 200
100 200 125
201 210
201 210 ...

Go to advanced search