Page 2 of 2
numerator / denominator == a whole number ???
Posted: Sat Oct 28, 2006 11:52 am
by nymo
I get ACC even without considering the case when numerator / denominator is a whole number. My program crashes on this input. So, there may not be such a case.
Re: 834 - Continued Fractions
Posted: Fri Jul 29, 2011 8:17 pm
by plamplam
I agree with nymo, I could modify my program to handle special cases where the numerator / denominator is a whole number but I decided to give it a shot first. AC in first try. My program would get Runtime Error if there were such cases. Very simple problem, you should get AC if the sample output matches as there are no special cases.
Re: 834 - Continued Fractions
Posted: Mon Jul 14, 2014 12:31 pm
by uDebug
Timo wrote:
I have create random sample input and output from my AC program.
Hope it help you.
These are some great test cases! Thanks for sharing.
Re: 834 - Continued Fractions
Posted: Fri Oct 10, 2014 10:42 am
by axelblaze
Don't know why getting TLE...! Tested all the inputs by timo...
here's my code... plz help...
Re: 834 - Continued Fractions
Posted: Fri Oct 10, 2014 11:00 am
by lighted
It is more safe to read this way.
Code: Select all
while (scanf("%d %d", &a, &b) == 2)
Re: 834 - Continued Fractions
Posted: Fri Oct 10, 2014 1:30 pm
by axelblaze
Thanks I got AC...
