pnoj-tg
This is a testcase generator for the PNOJ Online Judge.
It is recommended to install pnoj-tg using the PIP package available on PYPI.
Installation
pip install pnoj-tg
Usage
First create a file named config.yaml. Change the content to suit your needs.
config.yaml:
version: v1
generator:
input: ["python3", "generator.py"] # command to execute the input generator
output: ["python3", "solution.py"] # command to execute the solution
testcase:
batch:
- name: batch1 # batch name
points: 100 # points
testcase:
name: t-{0} # testcase name, "{0}" is replaced with the testcase number
num: 10 # number of testcases
- name: example
points: 0
testcase:
name: sample
num: 1
Then create two programs generator.py and solution.py.
generator.py should generate a random case.
solution.py should be the reference solution to the problem you are creating testdata for.
Then run:
pnoj-tg config.yaml
Build Instructions
git clone https://github.com/pnoj/pnoj-tg.git # clones the repository
cd scrapec
pip install . # install pnoj-tg
Metadata
Release files for pnoj-tg 20.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pnoj-tg-20.6.0.tar.gz | 2.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pnoj_tg-20.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.7 kB
Release files / pnoj-tg-20.6.0.tar.gz
| Download URL | pnoj-tg-20.6.0.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
962bdd34c48f2bc3591b04915b18f39b1c5444c2ee8030805959e0e7fef93019
|
|
BLAKE2b-256 checksum How to use checksums |
b70dcb6f837375d47e830954d41f6bd378fe176cbcfc1eb82141e59a451d7a3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
|
Release files / pnoj_tg-20.6.0-py3-none-any.whl
| Download URL | pnoj_tg-20.6.0-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
32e1981b4fcf1241391171246dd9cabb24947b2ad77cd9343de516004967d394
|
|
BLAKE2b-256 checksum How to use checksums |
9af95221279226ef703c323e0dc9985f3b3301f41d592183e5c4050329c7acbe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
|