Title |
User |
Message |
Date Posted |
super simple |
whcpeterwang |
find out the bigger difference between he first and second kangaroo and second and third kangaroo. |
Feb 18, 2018 - 6:48:33 pm UTC |
Hint |
competitivecoder |
Three positions are given initially(x |
Sep 21, 2015 - 5:59:35 am UTC |
Re: Re: Could somebody tell me what is wrong with my code? |
ilovepi |
Oh. I see you got the problem. Nvm then. |
Mar 24, 2011 - 11:35:18 pm UTC |
Re: Re: Could somebody tell me what is wrong with my code? |
ilovepi |
Hint: What do you notice about the last two numbers and the output? |
Mar 24, 2011 - 11:34:04 pm UTC |
Re: Re: Could somebody tell me what is wrong with my code? |
bobbyg212009 |
Thx |
Mar 24, 2011 - 11:27:40 pm UTC |
Re: Could somebody tell me what is wrong with my code? |
SourSpinach |
You get TLE, which of course means your program runs forever. This is caused by your whole program being wrong - debug it and observe the values of your 3 position variables, and see if they satisfy a... |
Mar 20, 2011 - 8:21:07 pm UTC |
Re: Could somebody tell me what is wrong with my code? |
ilovepi |
There is a much simpler way to do this problem without loops. However, I can't see anything wrong with your code except maybe you're going into an infinite loop. Try the smallest test cases, and then ... |
Mar 20, 2011 - 8:07:33 pm UTC |
Could somebody tell me what is wrong with my code? |
bobbyg212009 |
I get Time Limit Exceeded for test case 1 and test case 9. That is all. |
Mar 20, 2011 - 6:53:42 pm UTC |
Re: Re: Is there a special formula? |
SourSpinach |
How will testcases help? Each one is just 3 numbers, you can come up with those yourself. |
Jan 15, 2011 - 3:30:12 am UTC |
Re: Re: Is there a special formula? |
ilovepi |
Come on just one test case i really need the points... |
Jan 11, 2011 - 1:30:25 am UTC |