Oh good lord, it was fumbling on the i > j case. I had explicitly taken that case into account, but I was looping over the original variables rather than the properly-ordered ones. Fixed that; problem accepted!chogg wrote:Although, I'm still getting WA and I have no idea why.
Search found 2 matches
- Mon Apr 02, 2012 3:05 am
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 319080
Re: WA on Problem 100
- Mon Apr 02, 2012 2:59 am
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 319080
Re: WA on Problem 100
To the OP: your program hangs on input line
1 1000000
Mine returns in a fraction of a second. Although, I'm still getting WA and I have no idea why.
1 1000000
Mine returns in a fraction of a second. Although, I'm still getting WA and I have no idea why.