Answer the question
In order to leave comments, you need to log in
How to write tests for olympiad tasks?
Good day to all. The question is. Now I had to seriously engage in Olympiad programming, but I got tired of testing tasks manually. How to write a test that checks a specific task? It must substitute values into the input file, read the answer from the output file and compare it with the correct one. It should also interrupt the execution of the program if it runs for more than a certain time or exceeds the memory limit. Output all test results to a separate file. If possible, please show an example. Thanks in advance.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question