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

×

Coin Flip [CONFLIP] easy ; giving NZEC runtime error.

asked 12 Oct '13, 19:11

danishmodi's gravatar image

0★danishmodi
1113
accept rate: 0%


In CodeChef always exit the program using System.exit(0); CodeChef expects code should return a value at the end of the code. Also use BufferedReader to read input values rather than scanner. It will avoid Timeout error in code chef.

link

answered 20 Apr, 23:03

shainsha's gravatar image

0★shainsha
91
accept rate: 0%

I'm so sorry, I mistakenly flagged your answer as spam and I can't undo it :/
Also it's not necessary to use System.exit(0); as the default return value is 0 as long as main() does not throw an Exception. But you can have my upvote as compensation.

(20 Apr, 23:24) meooow6★

guys, please upvote me. i am new here. nad not able to ask question

link

answered 21 Apr, 03:07

thinkinfinit's gravatar image

1★thinkinfinit
672
accept rate: 0%

toggle preview
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

Question tags:

×2

question asked: 12 Oct '13, 19:11

question was seen: 325 times

last updated: 21 Apr, 03:07

Related questions