General Instructions

  1. 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:
    .cC
    .cppC++
    .javaJava
    .pasPascal
    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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. Any disruptive, obscene, offensive, or objectionable action of the part of program is grounds for immediate disqualification from the contest.
  7. In determining the reason for rejection, the judges will check the following, not necessarily in the order given, and report the first one noticed: