A code judging system is made from GoLang. This system is made for using with C/C++ programing languages. Currently, This system is in prototype for using to learn how to create automation code judging system only.
This programs is make for Debian & Ubuntu.
- Auto compile C/C++ source code.
- Auto judging the result from execute files.
- Check walltime, runtime to decide time out. (Using Isolate)
- It can specific the wrong & correct answer.
This program currently in alpha. I'm not make auto-install script untill it's in beta. (Manual Setup)
- Install GoLang (Version 1.23.x)
- Install Isolate (MANUAL INSTALL)
- Setup
go-grader
in .env with these example!
ISOLATE_PATH=/var/local/lib/isolate/
DIR_GRADER_PATH=/home/YOUR_USER/go_grader/
# Please don't forget / (black-slash).
- You can create problem testcase following this method:
- Make new directory as
./problem/<problem_id>/
- Make output and input file as:
- Input use
<number_testcase>.int
- Output use
<number_testcase>.out
- Make a description of problem as
desc.json
with these content:
{
"problem_title": "Problem_Name",
"max_time": 1,
"max_memory": 65536,
"amount_testcase": 3
}
If you can't imagine what's you should to make them, You can use this picture as reference.
Note: max_time and max_memory are used seconds and kilobytes (kB)
- Let's start! (with many bug!)
This programs is in testing. It support for Debian. Who's interest to use/contributed this script. You're welcome!