Convert Polygon packages to other formats, notably to CMS.
Project description
Polygon converter
Polygon refers to Codeforces' Polygon.
This package creates a copy of the tests, renames the tests and outputs a string that can be used
for the Score Parameters field (use GroupMin score type) for
Contest Management System (CMS). The renamed tests and the
score parameters capture Polygon's subtasks (groups) and dependencies in CMS.
This code uses problem.xml in the Polygon full package (either Windows or Linux is fine) to retrieve information about subtasks.
How To Use
- Install this package:
pip install polygon-convert - All groups must use the
COMPLETE_GROUPpoints policy. - Generate a full package on Polygon for your problem and download the Linux version.
- Run this file:
polyconv polygon_path, wherepolygon_pathis the path to the Polygon full package's root directory (where the foldersstatements/andtests/are). Add the-fflag to overwrite files if they exist. - A new folder
cms_outwill be created inpolygon_path(this can be changed with-o) containing the following:- A folder
tests/containing renamed tests. - A
.zipfiletests.zipwith the contents in thetests/folder above. - A
score_params.txtfile with the score parameters string. You should copy this to the Score Parameters field in CMS (use GroupMin score type).
- A folder
- The string in
score_params.txtwill also be output to the standard output.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file polyconv-1.0.3.tar.gz.
File metadata
- Download URL: polyconv-1.0.3.tar.gz
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5140ac59f7f4ca4c69f991035e6a938b47873e7382cca8a49aa06ab3aaeb0b9
|
|
| MD5 |
873fa0485be1f08a6e6734e33d24f8ec
|
|
| BLAKE2b-256 |
a615f4d6109a0de188a8edf89b2cf3c871b16f06c8a4be9bf0543b1c1230d84d
|
File details
Details for the file polyconv-1.0.3-py3-none-any.whl.
File metadata
- Download URL: polyconv-1.0.3-py3-none-any.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4045136d2b3890d4785f08c01c3292b2e0283820b8406fe3623843dd6adfe951
|
|
| MD5 |
1a009b023e5350065e8f4ea36deff948
|
|
| BLAKE2b-256 |
83433094aa7a6c911e2311411e854e969a8b70aa57618b4f334eb2808856ac0f
|