New User
Home » CodeChef Wiki
Recently, more and more people are asking questions that have been answered many many times before. This FAQ covers virtually all of them, so please make sure you have read it before using this site.
General FAQs
How does Codechef test whether my solution is correct or not?
How should I test my program?
What am I allowed to post as a comment for a problem?
How do I post a link to my code?
How does the time limit work?
What does the execution time displayed for my submission mean?
Why Is My Code Not Correct?
Why do I get a Compile Error (CE)?
Why do I get a Time Limit Exceeded (TLE)?
Why do I get a Runtime Exception (RE)?
Why do I get a SIGSEGV?
Why do I get a SIGABRT?
Why do I get a SIGFPE?
Why do I get an NZEC?
Why do I get Wrong Answer (WA)?
Why do I get an internal error?
Other Common Mistakes
In Java, do not create multiple BufferedReaders on the standard input stream. Create it once, and use it from there. Creating it multiple times will lead to a wrong answer due to the method Codechef uses to test your program. Different operating systems have different ways of representing a newline; do not assume one particular way will be used. For example, on Unix a newline is simply a \n character. On Windows, a newline is represented by \r\n, and not testing for the \r character will lead to problems. Ideally, use input reading functions from your language which handle new line issues for you.
Other Common Questions
If a number of test cases isn't provided, when should my program stop reading input?
What should I do with invalid input?
How can I store very very large integers accurately?
In C/C++, how should I read/write long longs?
If my code gets TLE, does that mean it is correct but takes too long?
Why can I view other people's solutions? Can they view mine? What is stopping people copying other's code?
Can I see if my solution to a contest problem is correct after the contest has finished?
How can I measure the execution time of my program locally?
Are any compiler flags set on the online judge?
FAQ For Problem Setters
CodeChef is a competitive programming community
About CodeChef
Contact Us
CodeChef uses SPOJ © by Sphere Research Labs
In order to report copyright violations of any kind, send in an email to
The time now is: 04:32:01 AM
Your IP:,
CodeChef - A Platform for Aspiring Programmers
CodeChef was created as a platform to help programmers make it big in the world of algorithms​, computer programming​, and programming contests. At CodeChef we work hard to revive the geek in you by hosting a programming contest at the start of the month and two smaller programming challenges at the middle and end of the month. We also aim to have training sessions and discussions related to algorithms​, binary search, technicalities like array size and the likes. Apart from providing a platform for programming competitions​, CodeChef also has various algorithm tutorials and forum discussions to help those who are new to the world of computer programming​.
Practice Section - A Place to hone your 'Computer Programming Skills'
Try your hand at one of our many practice problems and submit your solution in the language of your choice. Our programming contest judge accepts solutions in over 55+ programming languages. Preparing for coding contests were never this much fun! Receive points, and move up through the CodeChef ranks. Use our practice section to better prepare yourself for the multiple programming challenges that take place through-out the month on CodeChef.
Compete - Monthly Programming Contests, Cook-off and Lunchtime
Here is where you can show off your computer programming skills. Take part in our 10 days long monthly coding contest and the shorter format Cook-off and Lunchtime coding contests. Put yourself up for recognition and win great prizes. Our programming contests have prizes worth up to INR 20,000 (for Indian Community), $700 (for Global Community) and lots more CodeChef goodies up for grabs.
Programming Tools
Online IDE
Upcoming Coding Contests
Contest Hosting
Problem Setting
CodeChef Tutorials
CodeChef Wiki
Practice Problems
Go for Gold
CodeChef for Schools
College Chapters
CodeChef for Business
Terms of Service
Privacy Policy
Refund Policy
Code of Conduct
Bug Bounty Program
We use cookies to improve your experience and for analytical purposes. Read our Privacy Policy and Terms to know more. You consent to our cookies if you continue to use our website.