Downloads:
To use the visualizer 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 number of elements in points N. After this it should read N elements of points, one per line. Finally, sidesDiff and radiiDiff follow, each in a separate line. After the calculations are done, print the number of elements in your return, followed by elements themselves, one per line. Finally, flush standard out.

To do this, you should implement the following pseudocode:
    N = int(readLine())
    for (i=0; i < N; i++)
        points[i] = int(readLine())
    sidesDiff = int(readLine())
    radiiDiff = int(readLine())
    
    ret = choosePolygons(points, sidesDiff, radiiDiff)
    printLine(ret.size())
    for (i=0; i < ret.size(); i++)
        printLine(ret[i])
    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. 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.

For more information on using the tester, see the following thread. Note that this is not troubleshooting thread; please use the match forum for questions.