Code tasks

How to create a code task
- Press a button for adding a code task in Settings
- Write a name and a statement
- Write a test suite declaration
Example data
- Name:
Addition - Statemtent:
- Test suite:
{ "groups": [ { "name": "A", "cases": [ { "stdin": "2\n3\n", "validators": [ { "args": { "expected": "5" }, "type": "stdout" } ] }, { "stdin": "10\n20\n", "validators": [ { "args": { "expected": "30" }, "type": "stdout" } ] } ], "points": 100, "depends_on": [], "scoring_rule": "graded" } ], "precompile": [], "time_limit": 2, "mem_limit_mb": 256, "public_cases": [ { "in": "2\n3", "out": "5" } ], "compile_timeout": 5 }
Learn more: