Page 2 of 2

Posted: Fri Feb 17, 2006 7:32 am
by Krzysztof Duleba
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.

Posted: Sat Apr 14, 2007 7:12 pm
by helloneo
I got the correct output for the test case above.. but still WA..
Does anybody see anything wrong..?

Code: Select all

code removed
Thanks.. :-)

Posted: Sat Apr 14, 2007 10:13 pm
by little joey
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.

Posted: Sun Apr 15, 2007 4:30 am
by helloneo
Thanks a lot..
I found my bug and got AC.. :-)

Re: 10993 - Ignoring Digits

Posted: Thu Dec 06, 2012 2:43 pm
by Sanjary Rahman
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

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