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


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

asked 12 Oct '13, 19:11

danishmodi's gravatar image

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.


answered 20 Apr '17, 23:03

shainsha's gravatar image

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 '17, 23:24) meooow ♦6★

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


answered 21 Apr '17, 03:07

thinkinfinit's gravatar image

accept rate: 0%

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

Question tags:


question asked: 12 Oct '13, 19:11

question was seen: 421 times

last updated: 21 Apr '17, 03:07

Related questions