The file name of your program should have the same name as the problem and
one of the following suffixes to indicate the language used:
.c
C
.cpp
C++
.java
Java
.pas
Pascal
All file names should be in lower case.
For example, if the problem is called "sample", a Pascal solution would be named
sample.pas, a C solution would be sample.c, a C++ solution would be
sample.cpp, and a Java solution would be sample.java.
You may only submit one file as the solution to a problem.
The main class name in Java solutions should be identical to the filename.
The input to all programs will come from a file. The name of the file
is determined by the name of the problem. If the problem is called
"sample", then the input file will be named sample.in.
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 execeeded, 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