Files

Executable JAR
Source Code

Usage

To use the offline tester to test 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 each of the parameters in the order they appear in the function definition. To read a parameter, first read the number of elements it contains, and then read each element, all on their own lines. Once you have read the parameters, simply write the elements of your output, separated by whitespace. To do this, you should implement the following pseudocode:
    a = int(readLine())
    for (i=0; i<a; i++)
        A[i] = readLine()
    b = int(readLine())
    for (i=0; i<b; i++)
        B[i] = readLine()
    c = int(readLine())
    for (i=0; i<c; i++)
        C[i] = readLine()
    q = int(readLine())
    for (i=0; i<q; i++)
        queries[i] = readLine()
    output = recover(A,B,C,queries)
    for (i=0; i<output.length; i++)
        printLine(output[i])
    flush(stdout)
To run the tester with your solution, you should run:
java -Xmx1024M -jar Tester.jar -exec "<command>" -seed <seed>
Here, <command> is the command to execute your program, and <seed> is seed for test case generation.

The tester will display the component of your score from edit distance. When testing offline, you will have to add the time in on your own.

Finally, you can print any debug information of yous solution to standard error, and it will be forwarded to the standard out of the tester.