Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ototot/polygon2tioj
https://github.com/ototot/polygon2tioj
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ototot/polygon2tioj
- Owner: oToToT
- Created: 2020-01-18T08:33:34.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-20T17:10:32.000Z (5 months ago)
- Last Synced: 2024-10-05T23:14:07.747Z (3 months ago)
- Language: C++
- Size: 73.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Polygon to TIOJ #
## How to use ##
1. `git clone https://github.com/oToToT/Polygon2TIOJ`
2. `cd Polygon2TIOJ`
3. `pip install -r requirements.txt`
4. `./main.py filename [filename] --url=URL`* `filename` is the path to zip downloaded from polygon, notice that you should download Full Package of Linux.
* `URL` is the url to TIOJ.
* if `--update` is being set, you could update problem with its problem id by `./main.py filename ID --url=URL`.
* if `--remove_tests` is being set, you could remove tests with its problem id by `./main.py ID [ID] --url=URL`.## How to import contest to TIOJ ##
1. `git clone https://github.com/oToToT/Polygon2TIOJ`
2. `cd Polygon2TIOJ`
3. `./download.sh [username] [cid]`
4. Input your password
5. `./main.py *.zip --url=URL`
6. `rm *.zip`## Special Thanks ##
Thanks @WillyPillow for an easy tool to download contest packages from Polygon
## TODO ##
- [ ] check is user admin