Grader in 35 lines.

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.

This entry was posted in C, PHP. Bookmark the permalink.

2 Responses to Grader in 35 lines.

  1. Chalet16 says:

    I think you could use cafe-grader by A. @jittat

    http://code.google.com/p/cafe-grader/

  2. the DtTvB says:

    Just seen it. Thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>