Info

General Guidelines

  • Unless specified otherwise in a problem, solutions to holes with static input can be written in one of two formats:
    • A function which takes the specified input as an argument, and outputs the desired.
    • A piece of code which reads an input from standard input, and outputs the desired.
  • If a type or input is specified, the language is allowed to use whatever syntax is standard for delineating that type. E.g. an input 'Hello' can be passed with or without quotes if the input is guaranteed to be a string.
  • If an input range is specified for a problem, the solution given must work on the entire input range. For example, in h0 (primality test) the method of computing (n-1)! then taking mod n will only work for n>100 in most languages if the (n-1)! % n is computed intelligently.

Terminology

  • Standard true values are {1, t, T, true, True, TRUE}.
  • Standard false values are {0, f, F, false, False, FALSE}.

Use of this Wiki

  • There are currently templates for hole, solution, and language pages

Back to Main

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License