10993 - Ignoring Digits

All about problems in Volume 109. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

User avatar
Krzysztof Duleba
Guru
Posts: 584
Joined: Thu Jun 19, 2003 3:48 am
Location: Sanok, Poland
Contact:

Post by Krzysztof Duleba » Fri Feb 17, 2006 7:32 am

Stack size limit is adjustable in both environments, but in different ways. Moreover, the default values are quite important here.

In Linux the default is 8 MB and you can change it easily with ulimit -s for instance. The OJ can use a higher limit, but I'm not sure about that.

In VC the default is 1 MB. Windows code work in such a way that you can't change the limit after compilation, you have to set it as a linker option.
For millions of years, mankind lived just like the animals. Then something happened which unleashed the power of our imagination. We learned to talk and we learned to listen...

helloneo
Guru
Posts: 516
Joined: Mon Jul 04, 2005 6:30 am
Location: Seoul, Korea

Post by helloneo » Sat Apr 14, 2007 7:12 pm

Hello..
I got the correct output for the test case above.. but still WA..
Does anybody see anything wrong..?

Code: Select all

code removed
Thanks.. :-)
Last edited by helloneo on Sun Apr 15, 2007 4:09 am, edited 1 time in total.

User avatar
little joey
Guru
Posts: 1080
Joined: Thu Dec 19, 2002 7:37 pm

Post by little joey » Sat Apr 14, 2007 10:13 pm

For some reason your program doesn't give the right answer for input "91 1", which should be "1", of course. It gives the correct answer for input "19 1" tho. Haven't looked at your code, just executed it, but I'm sure you can find the problem yourself.

helloneo
Guru
Posts: 516
Joined: Mon Jul 04, 2005 6:30 am
Location: Seoul, Korea

Post by helloneo » Sun Apr 15, 2007 4:30 am

Thanks a lot..
I found my bug and got AC.. :-)

Sanjary Rahman
New poster
Posts: 3
Joined: Fri Apr 13, 2012 9:45 am

Re: 10993 - Ignoring Digits

Post by Sanjary Rahman » Thu Dec 06, 2012 2:43 pm

Can anyone tell me what's the problem with my code? Getting WA though It passes all the sample I/O given in the problem and the ones you guys gave in this post.

Code: Select all

CODE REMOVED AFTER AC
Just Had a simple Bfs with string,int pair Vector :) Easy One!

Post Reply

Return to “Volume 109 (10900-10999)”