Overview
A problem is what users will be providing solutions for. Each problem shares settings from its Assignment Settings i.e. All problems in an assignment will have the same start and end time.
Problem Types
We currently support three types of programming problems:
Unit
Input / Output
Custom
Dynamic
General Settings
Title
The name of the problem
Question Prompt
Should provide information on what the problem is about and how to submit.
Points
How much the problem is worth. The total points for the assignment will be the sum of points for each problem.
Execution Time
To limit how long the submission can run for, you can specify a max execution time in seconds. The max execution time will be divided evenly between each test case. For example, if the max execution time was 10 seconds and there are 10 test cases, then each test case gets 1 second of execution time.
Period
To limit the rate which a submission can be made, you can specific a time in seconds. The submitter will receive an error message denoting how much time they have left before they can submit again.
Enable Inline Editor
The inline editor is accessed by clicking on the Solve Here button in the submission view. It allows for direct editing and submission of code.
Enable Upload
Accessed by clicking on the Upload button in the submission view. Allows for a single file or a zip of files to be submitted
Enable Github
Accessed by clicking on the Submit From Github button in the submission view. Allows for a Github repository to be submitted.
Enable CDE
Accessed by clicking on the Submit from Editor button in the submission view. Allows for files to be submitted from Kodethon’s online editor.
Submission File Structure
Below is an outline of the file structure of a submission. Please note that exact path of the submission will be determined after submission is made and will be placed under /home/kodethon/.staging.
metadata.json
The metadata.json file will be of JSON format as shown below:
autograder
The specified test command will be executed from within the autograder folder. All files in /home/kodethon/PROBLEM_NAME/autograder will be exposed here as a soft link.
output/stdout
Contains the stdout of the test command.
output/stderr
Contains the stderr of the test command.
submission
When a submission is made, Kodethon will place the submission files in the submission folder. That is, references to the submission files should be made via ../submission/FILE_NAME.
Accessing Problem Files
The files can be accessed by clicking on the the Editor section as highlighted in red below.
Last updated