Page 2 of 3
Posted: Sun Mar 04, 2007 9:32 am
by helloneo
My AC code gives the same output..
Posted: Thu Mar 08, 2007 8:54 pm
by dileep
helloneo wrote:My AC code gives the same output..
I'm also getting same output.....but it's showing WA
--
website:
http://www.dileep.com
What a funny..............
Posted: Sun Jul 22, 2007 8:07 pm
by Tanu
Posted: Thu Feb 21, 2008 6:11 pm
by turcse143
i just use the normal algo.
here just have one trick.
add one to the n;
then continue the algo in the given pattarn.
all input/output is correct but why WA!!!!!!!
Posted: Fri Feb 22, 2008 10:55 pm
by hunter_du
Posted: Fri Feb 22, 2008 11:26 pm
by turcse143
hunter check the following input output.
ur code shows error.
check this sequence.
Posted: Sat Feb 23, 2008 7:34 am
by hunter_du
Thanks turcse143, Finally i got ACC... That was the input where my output was wrong. Here is another good input/output
Re: 11150 - Cola
Posted: Wed May 28, 2008 12:05 pm
by Obaida
How I can get it right???
Any one please help me?
Code: Select all
This simple problem made me think a lot!!!
11150 - Cola
Posted: Wed Jun 25, 2008 1:51 pm
by aeiou
Hi,
I ve been thinking about this problem but not able to find the recurrence yet...Can anybody PM/post the recurrence?
Pls help this learner!!
Re: 11150 - Cola
Posted: Wed Jun 25, 2008 10:40 pm
by Jan
Search the board for 'Peter's Smoke'. It will help. However, you can formulate this as a math problem. You will find a simple formula. (Though the derivation is not simple)
11150 - Cola
Posted: Mon Jun 30, 2008 9:07 am
by aeiou
Thank u very much Jan for ur suggestions...I found the recurrence and got AC...
Re: 11150 - Cola
Posted: Wed Apr 07, 2010 4:35 am
by shinningangel
I always got RTE on this problem..
even I make my program as short as only 7 lines without simulations..
or with simulations!!
its drive me crazy ><
why!?
is there any idea why got RTE?
Re: 11150 - Cola
Posted: Wed Apr 07, 2010 9:54 am
by sohel
Maybe it'd be better if you can show us your code. It's very tough to spot a bug in someone's code without seeing it.

Re: 11150 - Cola
Posted: Sun May 02, 2010 4:23 pm
by Taman
@shinningangel:
Well, as the range of n is very small(only 200), I don't think you are getting RTE for stack overflow.
Two more vital reasons are left, first of all, if you are using array to keep your input or output check the size of it.
Second, Make sure you are not dividing any number by zero.
Re: 11150 - Cola
Posted: Mon Nov 29, 2010 6:00 pm
by sms.islam
i have found out a connection.And it is working.if anyone solved uva online judge problem 11877.then just add the result with the corrosponding value of n then it will be ok..............................
problem solving is really fun........