SPOJ.PL - Trying Your Own Strength!

    Sphere online judge


    I bring to your attention a Polish site with traditional programming tasks— SPOJ.PL By
    registering on it, you can solve problems in almost any programming language you know, including Ruby.

    Register and proceed to the test problem .


    In English, it sounds like this:
    SPOJ Problem Set
    1. Life, the Universe, and Everything
    Problem code: TEST

    Your program is to use the brute-force approach in order to find the Answer to Life, the Universe, and Everything. More precisely ... rewrite small numbers from input to output. Stop processing input after reading in the number 42. All numbers at input are integers of one or two digits.

    Example

    Input:
    1
    2
    88
    42
    99

    Output:
    1
    2
    88


    The meaning is simple: the

    program does nothing more than rewrite small numbers from input to output. After you meet 42, you stop. The input is given a number of one or two digits.

    In each problem, below are indicated restrictions that cannot be exceeded and the languages ​​in which this problem can be solved, as well as the name of the author of the problem and the date of addition.

    For instance:
    Added by: Michał Małafiejski
    Date: 2004-05-01
    Time limit: 3s
    Source limit: 50000B
    Languages: All
    Resource: Douglas Adams, The Hitchhiker's Guide to the Galaxy


    After you deal with the problem on your computer, it should be sent for verification to the site.

    Then you will receive an answer whether you have completed the task or not.

    The more problems you solve, the higher you go up in the ranking, and maybe take a place in the top 100 .

    Go for it, good luck!

    Also popular now: