General Instructions

  1. The file name of your program needs to use one of the following suffixes to indicate the language:
    .cC
    .cppC++
    .javaJava
    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.
  2. 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.
  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: