Title |
User |
Message |
Date Posted |
Re: ... |
jargon |
Yes; the message says says "5679 CPU time limit exceeded." |
Jan 11, 2012 - 12:26:50 am UTC |
... |
Thinkdifferent |
My program worked fine and passed all the sample input,but when I submit it says Your Output:"./a:_line_2:__5679_C..." is this because my program is too slow? |
Jan 11, 2012 - 12:16:47 am UTC |
Re: ... |
Daniel |
That means your program is too slow. Did you try extreme test cases on your computer? (Remember that the numerator and denominator can go up to 32000) |
Nov 05, 2011 - 12:02:54 am UTC |
... |
bobbyg212009 |
why i get wrong time error |
Nov 04, 2011 - 9:02:42 pm UTC |
Re: Whats wrong? |
hansonw1 |
Actually only your output format is wrong. Look at your output, and the sample output, and the difference should be clear. |
Jan 01, 2009 - 10:31:58 pm UTC |
Re: Re: Re: Re: Re: Whats wrong? |
purohit3105 |
So my program isn't working because its taking too much time?? Is everything else fine?? |
Jan 01, 2009 - 10:26:42 pm UTC |
Re: Re: Re: Re: Whats wrong? |
bleung91 |
well in that case, you should look at your algorithm. http://en.wikipedia.org/wiki/Euclidean_algorithm I refer you here, because this is the best way to do this problem. |
Jan 01, 2009 - 5:48:37 am UTC |
Re: Re: Re: Whats wrong? |
purohit3105 |
I removed the semicolons now.., It still doesn't work.. |
Jan 01, 2009 - 5:28:16 am UTC |
Re: Re: Whats wrong? |
bbi5291 |
That in itself does not constitute a problem. Most of the time, an extra semicolon is simply an empty statement. The problem arises when they are placed after for loop headers, if statement conditions... |
Jan 01, 2009 - 4:21:12 am UTC |
Re: Whats wrong? |
bleung91 |
why do you have semicolons after your if statements braces? |
Jan 01, 2009 - 4:00:21 am UTC |