The correctness of the code is checked on the basis of unit tests. Your code is run to perform a test on it. Your code runs multiple times on various unit tests. This way we check if your program is universally written for different sets of parameters and data. Some of the tests are visible to you (so that you can see if you really understand the task correctly), but some are hidden, and it is only by successfully passing these hidden tests that you win points.