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

×

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

14
29

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

0★healthytechfun
196359
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 :)

link

answered 10 Dec '12, 12:50

vinayak%20garg's gravatar image

4★vinayak garg
3.6k113249
accept rate: 18%

I can't answer your java related queries but for rest other things you should definitely check out
http://discuss.codechef.com/questions/855/what-kind-of-comment-should-i-post-on-the-problem-page
Also http://discuss.codechef.com/questions/1022/how-to-use-this-forum
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 http://discuss.codechef.com/questions/3154/a-newbie-can-anyone-help-me
I hope this helps :)

link

answered 10 Dec '12, 03:12

abhinav1592's gravatar image

2★abhinav1592
4572713
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

link

answered 28 Jan '16, 00:52

nuboro's gravatar image

2★nuboro
713
accept rate: 0%

edited 28 Jan '16, 00:59

2

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.

link

answered 31 Oct '16, 21:37

ubayresearch's gravatar image

0★ubayresearch
11
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$ $:)$

link

answered 10 Aug '15, 23:14

admin123's gravatar image

5★admin123
1.2k11
accept rate: 28%

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

link

answered 28 Jan '16, 22:34

krishnakittu's gravatar image

0★krishnakittu
1
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 b.tech 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?

link

answered 17 Feb '16, 19:05

priyadn7696's gravatar image

0★priyadn7696
1
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.

link

answered 22 Feb '16, 14:09

krishnaa's gravatar image

0★krishnaa
1
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.

link

answered 10 Mar '16, 20:05

tanmay093's gravatar image

0★tanmay093
1
accept rate: 0%

include<stdio.h>

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

link

answered 27 Mar '16, 20:19

joker619's gravatar image

0★joker619
1
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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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

Tags:

×212
×181
×164
×45
×9

Asked: 07 Dec '12, 03:10

Seen: 150,750 times

Last updated: 25 May, 11:04