General Instructions
- The file name of your program needs to use
one of the following suffixes to indicate the language:
No particular file name is required for a particular problem.
You may submit only one file as the solution to a problem.
The name of the main class in Java should be identical to the name of the file.
- The input to all programs will come from the standard input,
not from a file.
The output of all programs will be to the standard output,
not to a file.
Your program should not create any files.
Output to the standard error will be ignored.
- You may assume all input data is correctly formatted unless otherwise
stated. For example, if the problem says there will be three integers on an
input line, you may assume that there are indeed three integers on the line
and won't have to worry about possibly having letters or punctuation on the
line.
- Unless otherwise stated, you may assume integer input is expressed in
decimal notation and is restricted to numbers between -2,147,483,648
(-231) and 2,147,483,647 (231-1).
Additionally, unless otherwise stated, you may assume real input
is representable by the built-in real types of the system compilers.
- The word "should" is used to express requirements. If a problem says you
should do something, you must do it to have your problem judged correct.
- Any disruptive, obscene, offensive,
or objectionable action of the part of program
is grounds for immediate disqualification
from the contest.
- In determining the reason for rejection, the judges will check the
following, not necessarily in the order given, and report the first one
noticed:
- Compilation error, if the program does not compile
- Run-time Error, if the program does not run successfully to completion
- Time-limit exceeded, if the execution time greatly exceeds the requirements of a reasonable solution
- Wrong Answer, if the program does not produce the correct output
- Output Format Error, if the output not presented according to the specifications