https://github.com/kentonishi/joi-grader
An automatic grader for problems from https://www.ioi-jp.org/.
https://github.com/kentonishi/joi-grader
Last synced: 4 months ago
JSON representation
An automatic grader for problems from https://www.ioi-jp.org/.
- Host: GitHub
- URL: https://github.com/kentonishi/joi-grader
- Owner: KentoNishi
- Created: 2019-11-02T20:26:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-04T20:39:01.000Z (over 5 years ago)
- Last Synced: 2025-01-03T10:11:42.624Z (6 months ago)
- Language: Python
- Homepage:
- Size: 207 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# JOI-Grader
An automatic grader for problems from [ioi-jp.org](https://www.ioi-jp.org/).
# Requirements
* Windows 10
* Windows Subsystem for Linux
* Python
* g++# Setup
``grader.py`` can be run as a normal script, or it can be configured as a task.Running the program normally:
* Run the script using ``python``.```bash
python grader.py
```* Input your solution and test case paths.
> The program accepts one optional command line argument, which is the path to your solution file (C++). For more information, refer to the [Editor Integration](#Editor-Integration) section.# Editor Integration
* Test case folders can be specified at the top of your solution in the following format in the first line of your code:
```cpp
// Test case path: [path]
```
> Path is an absolute file path to your test case folder.> Test case folders should contain directories named ``in`` and ``out``. Every ``txt`` file in one folder should be present in the other.
* In editors such as [Visual Studio Code](https://code.visualstudio.com/), you can configure this program as a [task](https://code.visualstudio.com/Docs/editor/tasks). An example of the task configurations can be found [here](https://github.com/KentoNishi/.vscode/tree/JOI-Settings).