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

×

What should I do with invalid input?

What should be my approach towards invalid input.

asked 22 Mar '13, 16:46

abhijeetpandey's gravatar image

3★abhijeetpandey ♦♦
45471013
accept rate: 22%


There will not be invalid input. If a program says a number will be between 0 and 100, it will be between 0 and 100. There is no need to write if (number>=0 && number<=100), or do anything in other cases.

link

answered 22 Mar '13, 16:47

admin's gravatar image

0★admin ♦♦
19.6k349497539
accept rate: 35%

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:

×206
×1

question asked: 22 Mar '13, 16:46

question was seen: 3,700 times

last updated: 22 Mar '13, 16:47