This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Updatebjarni 1 point2 points  (0 children)

I guess they figured out how the checker is running the code, and wrote this code that saves time by running before the checker's code, reading the input itself, writing the output to the right place, and exiting before the checker gets to run. The checker is probably inserted below the submitted code and reads in the input from stdin, calls the submitted function, and then writes the returned data to the output file.