Input/Output Grading
You can create grading code based on standard input/output for simple grading. The code will be generated automatically.
Input/output grading is a method of grading based on whether a specific value is output for an input value.
- Click the pencil-shaped material editing icon in the left navigation bar.
- Click the 'Write Execution/Grading File' tab at the top of the practice editing page.
- Click the 'Write STDIO Grading Code' button at the bottom.
- Press the '+' button to set up test cases, execution time limits, and scores according to the desired input/output grading method.
- Click on the grading message section to write the messages displayed for correct/incorrect answers.
- Click the 'Save' button in the bottom right.
- STDOUT output values are the same: Graded as correct if the output value of the student's code is exactly the same as the set string.
- STDOUT output value contains a string: Graded as correct if the output value of the student's code contains the set string.
- STDOUT output value does not contain a string: Graded as correct if the output value of the student's code does not contain the set string.
- STDOUT output value matches a regular expression: Graded as correct if the output value of the student's code matches the set regular expression.
- STDOUT output value does not match a regular expression: Graded as correct if the output value of the student's code does not match the set regular expression.
If grading code already exists, it will be overwritten by the input/output grading code.