Wednesday, April 28, 2010: Grader in 35 lines. « from the old blog archive »
So we're doing some programming tasks at the computer olympics camp. My friend has got the task descriptions and all the testcases for the last year's competitions.
Now that everyone has finished their codes, we need to grade them and see if....
- The output is correct.
- The code runs in time.
- The code uses not much memory (but I don't know how to check it, so skip it :D)
But I don't have a grader so I came up with this real quick.
So there you have it. Read the code to know how to use it.