getchar vs scanf
can any one tell me the difference b/w int a[n]; for(int i=0;i<n;i++)<br> { a[i]=getchar()-48; } andint a[n]; for(int i=0;i< n;i++) { scanf("%1d",&a[i]); }
View Articletime limit
time limit is given 1 sec and my code time shown is 11 sec.Still it is accepted. question code is BINTREE from April Challenge 2014! please explain!
View ArticleTMSLT - Editorial
PROBLEM LINK:PracticeContestAuthor:ShipluTester:Mahbubul HasanEditorialist:Jingbo ShangDIFFICULTY:SimplePREREQUISITES:SortPROBLEM:Given a random sequence of N numbers, a[0..N-1], sort them in order and...
View ArticleHow to deal with SIGXFSZ error
This question has been asked here before and I understand what the error means. The question which is giving this error expects 5000 lines of output (at max) so I figure the method by which I output...
View ArticleGoogle Code Jam- Deceitful War
Can any one explain me the 4th test case of the above question. How the answer is 8? The link to the problem is as below: Deceitful WarThanks in advance.
View Articlechef and digits april long callenge
my code is working on codeblocks but still unacceptable............can you tell me the error
View ArticleDivide the Tangerine - Java 6 is used
Hello Java coders,please note, that problem Divide the Tangerine is compiled using Java 6 (even when you choose Java 7 from drop down). We had there similar problems before, search the forum to find...
View Articlegetting a Wrong Answer
Hey guys, I am new to code chef and am getting a problem while submission of a code i.e., "Chef and Digits". Ive checked my programs output on gcc 4.8.1 with several different cases possible on my...
View ArticleApril Challenge Chef and Digit
i am getting time limit exceed, please help me, my answer is totally correct but i am getting time limit exceed.
View ArticleOutput is correct in my system but it is showing siesegv runtime error when i...
i Want All the reasons why there is SIESEGV error in my code which was in C
View Articlechef and digit strong cases
Plz provide some strong test cases with its output.. for Question ADIGIT..
View ArticleWA plz why I was getting TANGDIV???
http://ideone.com/Q2utsQ why I was getting WA..plzzz provide the test cases..as the the contestent has ended
View ArticleSmall factorial
i have run this code in my compiler it work fine till its upper limit as per given in the question. But codechef gives it wrong every time. please any body help. the link to the question given...
View Articlecalculating the memory acquired by the code submitted
Hi Guys! I just want to know that how codechef calculates the memory acquired by the code and show it in the submissions table under Memory column (like, 2.6M;)? And, how could a coder can see the same...
View Articlewhy WA in TANGDIV
http://ideone.com/cnM7Ac ...can anyone please tell me why i'm getting WA
View ArticleRequesting new feature
As codechef is platform to learn and practice, It would be very helpful if codechef can show on which test case our solution fails during contest. As it would be very helpful to know the silly mistake...
View ArticleTANGDIV - Editorial
PROBLEM LINK:PracticeContestAuthor:Ilya MalinovskyTester:Shiplu Hawlader and Mahbubul HasanEditorialist:Lalit KunduDIFFICULTY:EASY-MEDIUM PREREQUISITES:Ad-Hoc PROBLEM:Numbers 1 to N are written in...
View ArticleBINTREE - Editorial
PROBLEM LINK:PracticeContestAuthor:Lalit KunduTester:Shiplu Hawlader and Mahbubul HasanEditorialist:Lalit KunduDIFFICULTY:EASY PREREQUISITES:Binary TreeLowest Common AncestorPROBLEM:Given infinite full...
View ArticleViolataion Of Codechef Code Of Conduct
Seems like plenty of fake codechef profiles have been made recently. Some of them...
View Article