11150 - Cola
Moderator: Board moderators
I'm also getting same output.....but it's showing WAhelloneo wrote:My AC code gives the same output..
--
website: http://www.dileep.com
What a funny..............
Some problem makes a lots of fun with me, like this one...
![:P](./images/smilies/icon_razz.gif)
![:P](./images/smilies/icon_razz.gif)
![:P](./images/smilies/icon_razz.gif)
![:P](./images/smilies/icon_razz.gif)
![:P](./images/smilies/icon_razz.gif)
![:P](./images/smilies/icon_razz.gif)
![:P](./images/smilies/icon_razz.gif)
![:P](./images/smilies/icon_razz.gif)
![:P](./images/smilies/icon_razz.gif)
![:P](./images/smilies/icon_razz.gif)
![:P](./images/smilies/icon_razz.gif)
![:P](./images/smilies/icon_razz.gif)
![:P](./images/smilies/icon_razz.gif)
![:P](./images/smilies/icon_razz.gif)
![:P](./images/smilies/icon_razz.gif)
![:P](./images/smilies/icon_razz.gif)
![:P](./images/smilies/icon_razz.gif)
![:P](./images/smilies/icon_razz.gif)
![:P](./images/smilies/icon_razz.gif)
![:P](./images/smilies/icon_razz.gif)
all input/output is correct but why WA!!!!!!!
Code: Select all
removed code
Last edited by hunter_du on Sat Feb 23, 2008 7:35 am, edited 1 time in total.
-
- Learning poster
- Posts: 81
- Joined: Wed May 09, 2007 9:59 pm
- Location: (CSE,DU) Dhaka,Bangladesh
hunter check the following input output.
ur code shows error.
check this sequence.
ur code shows error.
Code: Select all
input:
11
17
29
output:
16
25
43
''I want to be most laziest person in the world''
Thanks turcse143, Finally i got ACC... That was the input where my output was wrong. Here is another good input/output
Code: Select all
20 - 30
Re: 11150 - Cola
How I can get it right???
Any one please help me?
Any one please help me?
Code: Select all
This simple problem made me think a lot!!!
try_try_try_try_&&&_try@try.com
This may be the address of success.
This may be the address of success.
11150 - Cola
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!!
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
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)
Ami ekhono shopno dekhi...
HomePage
HomePage
11150 - Cola
Thank u very much Jan for ur suggestions...I found the recurrence and got AC...
-
- New poster
- Posts: 2
- Joined: Sat Nov 28, 2009 9:12 am
Re: 11150 - Cola
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?
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
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. ![:)](./images/smilies/icon_smile.gif)
![:)](./images/smilies/icon_smile.gif)
Re: 11150 - Cola
@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.
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
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........
![:D](./images/smilies/icon_biggrin.gif)
problem solving is really fun........