You are not logged in. Please login at to post your questions!


Getting started here, questions about strategy, etiquitte, etc.


Hi guys.

I've just started here, I have a few questions about how I approach this place. Firstly, let me just say that wow - some of the problems here are pretty difficult, even for easy!

Alright, so I've just bunch of the questions in the FAQ, here's a few more.

  1. What's the etiquette for posting here? For example are 'I'm working XYZ practice problem, I've got TLE error, here's my code, what should I do?' questions ok?

  2. What's the general strategy for solving problem, or doing time optimization? Are there any tools that you use? Like, one of the things I can see that would be problematic, is when you get a 'wrong answer' but you don't know what the 'expected vs output' is. Is this just something you need to deal with as a programmer, to think of the corner cases yourself?

  3. Is there any way to get additional test data?

  4. How do you organise your code chef files in your IDE? For example, your class name (in Java) must called Main, and it can't be part of any package, when you paste in to the submitter, otherwise it'll give you an error, wondering how people deal with that.

  5. code reusablity - I get the feeling that a lot of this is going to be using various appropriate algorithms. What I would tend to do is import the package that contains the algorithm. But given that the submission has to be a single file with no non-native imports, is the only thing you can do, is copy the code in for each algorithm?

  6. Where would you start in terms of first problems to solve? For example I would suggest doing the Enormous Input test as one of your first problems.


asked 07 Dec '12, 03:10

healthytechfun's gravatar image

accept rate: 0%

edited 07 Dec '12, 03:16

12345 ... 7next »

Welcome to codechef!

  1. You have written your question very nicely :) So I don't think you would have any etiquette problem. Just try your best to solve before asking. And you can not ask for help about a live problem.

  2. It will take some time, and lots of practice for you to discover strategy. But you will enjoy it! And yes you have to think about corner cases yourself. This is challenging, but you will appreciate it later. It improves you as a programmer.

  3. No. You can create your own test cases though.

  4. I code in C++. And I don't use IDE, so I can't answer this.

  5. Submissions are single file only, so you have no option but to copy-paste. You can look at EgorK's code to see how to write Java code.

  6. Start solving easy practice problems. As many as you like. And then move onto medium and harder ones. And start competing in monthly challenges as soon as you can.

Best of luck :)


answered 10 Dec '12, 12:50

vinayak%20garg's gravatar image

4★vinayak garg
accept rate: 18%

I can't answer your java related queries but for rest other things you should definitely check out
There's no way to get additional test data unless admins provide it.But that has never happened.
For your 6th question read this very nice answer by betlista here
I hope this helps :)


answered 10 Dec '12, 03:12

abhinav1592's gravatar image

accept rate: 0%

Hey I am new to this site. I am in school now(in grade 9 (Germany)).Can i participate? And IF I would win how would i get the prizes? Thanks for all replies. And how could you enter a Team ? Cheers


answered 28 Jan '16, 00:52

nuboro's gravatar image

accept rate: 0%

edited 28 Jan '16, 00:59


codechef will contact you if you won cash prize then it will be paid through paypal and there is delivery system for goodies (once in a month). glad to see that you are starting soon (or asking for left sibling) but i appreciate what you wrote.

(14 Sep '16, 08:28) mahipalsaran4★

hi there, im new to coding. im physics graduate and wanna be a professional programmer.


answered 31 Oct '16, 21:37

ubayresearch's gravatar image

accept rate: 0%

for those who code in JAVA,

i cant say anything about algo and DS because you have to do it by self but for format:-

if your class if public then class name must be "Main". otherwise you can name your class whatever you want. But if your class if public and class name is not Main then you will get compile time error :( . and for input output if you are using BufferedReader class then be careful about "space" and "newline" because BufferedReader ignore space but terminate at "newline" it is better to use Standard input output class at any competitive site because it is customized according to input format. You can take it from any where or from my submissions its good it terminate at space,newline,etc. $welcome$ $to$ $JAVA$ $world$ $:)$


answered 10 Aug '15, 23:14

admin123's gravatar image

accept rate: 28%

i want to become a good programmar i wish codechef helps me in taking me to higher level


answered 28 Jan '16, 22:34

krishnakittu's gravatar image

accept rate: 0%

yes they do.they have practice saction for that

(14 Sep '16, 08:29) mahipalsaran4★

Hi I m new to this place. I m studying IT. One of my senior told me to create an register in codechef and I m so happy to join here. Can someone tell me how can I practice I mean from where to start?


answered 17 Feb '16, 19:05

priyadn7696's gravatar image

accept rate: 0%

i don't know u'r level but start easy practice problems if u feel comfortable then move to mid level and take part in contests

(14 Sep '16, 08:30) mahipalsaran4★

Hi, I had C++ as my basic programming course during my first year of under graduation. I want to brush up my basics of C++ and want to get started in programming.Please sugges MOOCs or any online material that will be helpful to me.


answered 22 Feb '16, 14:09

krishnaa's gravatar image

accept rate: 0%

I am a student right now but i love to code.I can easily do my class 9th programs.I love coding,so i have joined codechef.Please help me code even better,so that i can become a good coder.


answered 10 Mar '16, 20:05

tanmay093's gravatar image

accept rate: 0%


void main() { int i; i=9; }


answered 27 Mar '16, 20:19

joker619's gravatar image

accept rate: 0%

12345 ... 7next »

toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol



Asked: 07 Dec '12, 03:10

Seen: 150,750 times

Last updated: 25 May, 11:04