Downloads


Helpful information


In order to use the offline tester / visualizer tool for testing your solution locally, you'll have to adopt your solution to read the parameters from standard in and write the output to standard out. This doesn't affect the functioning of the solution you submit to our server.

Your program should first read the parameters: size of the board N, board, T, B and R. Your program should output your list of moves as a string and flush the standard output.

To do this, you should implement the following pseudocode:
    main()
    {   
        N = int(readLine())
        for (i=0; i<N; i++)
            board[i] = readLine()
        T = int(readLine())
        B = int(readLine())
        R = int(readLine())
        ret = makeMoves(board, T, B, R)
        printLine(ret)
        flush(stdout)
    }

To run the tester with your solution, you should run:
java -jar tester.jar -exec "<command>" -seed <seed>

Here, <command> is the command to execute your program, and <seed> is seed for test case generation. If your compiled solution is an executable file, the command will be the full path to it, for example, "C:\TopCoder\solution.exe" or "~/topcoder/solution". In case your compiled solution is to be run with the help of an interpreter, for example, if you program in Java, the command will be something like "java -cp C:\TopCoder Solution".

Additionally you can use the following options: Finally, you can print any debug information of your solution to standard error, and it will be forwarded to the standard out of the tester.