×

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

 1 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 0★shainsha 9●1 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★
 0 guys, please upvote me. i am new here. nad not able to ask question answered 21 Apr '17, 03:07 67●2 accept rate: 0%
 toggle preview community wiki:
Preview

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• 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: 392 times

last updated: 21 Apr '17, 03:07