Search found 3 matches
- Sun Jan 24, 2010 4:58 am
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 320762
Re: If you get WA in problem 100, read me before post!
Youre missing the same thing that I missed. the algo function must return something on each statment instead of just calling algo(.....) on the if statment you have to do return (algo (......));. and itll work.
- Sun Jan 24, 2010 4:41 am
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 320762
Re: 100
Thank you, i didnt realize about the return statemets, i got it accepted! 

- Sat Jan 23, 2010 10:10 pm
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 320762
Re: 100
Hey, Im having some problems with this problem, Ive tried all the possible inputs and I get a right output but the judge keeps saying wrong answer. Could anybody put an eye on it and tell me if Im doing something wrong?
Heres my code.
Thanks in advanced.
#include <iostream>
#include <stdio.h ...
Heres my code.
Thanks in advanced.
#include <iostream>
#include <stdio.h ...