Quantcast
Channel: CodeChef Discuss - latest questions
Browsing all 40121 articles
Browse latest View live
↧

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 Article


time 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 Article


TMSLT - 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 Article

How 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 Article

Google 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 Article


chef and digits april long callenge

my code is working on codeblocks but still unacceptable............can you tell me the error

View Article

Divide 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 Article

getting 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 Article


April 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 Article


Output 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 Article

chef and digit strong cases

Plz provide some strong test cases with its output.. for Question ADIGIT..

View Article

WA 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 Article

Small 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 Article


calculating 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 Article

Alfamart official partner merchandise FIFA piala dunia Brazil 2014

post deleted

View Article


why WA in TANGDIV

http://ideone.com/cnM7Ac ...can anyone please tell me why i'm getting WA

View Article

Requesting 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 Article


Image may be NSFW.
Clik here to view.

TANGDIV - 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 Article

Image may be NSFW.
Clik here to view.

BINTREE - Editorial

PROBLEM LINK:PracticeContestAuthor:Lalit KunduTester:Shiplu Hawlader and Mahbubul HasanEditorialist:Lalit KunduDIFFICULTY:EASY PREREQUISITES:Binary TreeLowest Common AncestorPROBLEM:Given infinite full...

View Article

Violataion Of Codechef Code Of Conduct

Seems like plenty of fake codechef profiles have been made recently. Some of them...

View Article
Browsing all 40121 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>