CLI tools to prepare problems locally and to work with ucode.vn server
Project description
uCode CLI tools
CLI tools to prepare problems locally and to work with uCode.vn server
Description
DSA problem tools
Other question tools
Interact with ucode.vn server
Installation
Normal installation
pip install ucode-cli --upgrade
Development installation
git clone https://gitlab.com/ucodevn/ucode-cli.git
cd ucode-cli
pip install --editable .
Usage
Get help
ucode --help
Get help for a specific command
ucode {command} --help
DSA Problem structure
Input description
Example
Input
integer T- Multitestinteger ninteger m- Số lượng phần tử $n$, số lượng thao tác $m$array.integer a[n]- Các phần tử $a_i$ của mảng $a$, cách nhau bởi dấu cáchstring s[m]- xâu s gồm $m$ ký tựdouble Ldouble R[m]- Cận trái và phải của một trong số $m$ thao tác
Constraints
T: [1, 100]n: (2, 1e6]a[i]: [1, 1e18)L: (1, 10000)R: (L, 10000)- Subtasks:
- 40%:
T: [1, 10]n: [1, 100]
- 30%:
n: [100, 10000]
- 40%:
n: [10000, 1e6]
- 40%:
Output
boolean YES|NO- Kết quả bài toáninteger- Kết quả bài toándouble(3)- Kết quả bài toán, với 3 chữ số sau dấu phẩy
Sample input 1
5 2
1 2 3 4 5
Sample output 1
11
Explanation
Các cặp số $(l, r)$ thỏa mãn là: $(1,1), (1,2), (1,3), (2,2), (2,3), (3,3), (3,4), (3,5), (4,4), (4,5), (5,5)$.
Change log
[2.5.5] - 2021-12-05
Fixed
- Fixed newlines error in ucode testcase inside .zip
[2.5.1] - 2021-10-25
Added
- Add
svr getcommand to get problem from ucode - Add
-Soption tosvr getandcf getcommand to split input data to separated lines
[2.4.0] - 2021-10-18
Fixed
- Fix
cf getcommand due to codeforces security update
[2.2.2] - 2021-09-24
Added
- Subtask session in problem statement
- Post editorial (as hint) and solutions to ucode server
- Move src_url to question's source_detail
[2.2.2] - 2021-09-23
Added
- Support gentest to themis format
- Add ucode svr command to update problem
[2.2.2] - 2021-08-14
Added
- Support multiple testcase format
[2.2.0] - 2021-07-17
Added
- Testcase tools
[2.1.0] - 2020-11-25
Fixed
- Fix bugs
[2.0.6] - 2020-10-25
Fixed
- Fix
ucode dsa convertcreate new problem code
[2.0.5] - 2020-10-24
Added
- Added
ucode dsa convertto convert from other (Themis) testcase format toucodeformat
[2.0.1] - 2020-10-12
Added
- Moved from obsoleted toolbox
- Major version bumped
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ucode-cli-2.5.5.tar.gz
(107.1 kB
view details)
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
ucode_cli-2.5.5-py3-none-any.whl
(123.2 kB
view details)
File details
Details for the file ucode-cli-2.5.5.tar.gz.
File metadata
- Download URL: ucode-cli-2.5.5.tar.gz
- Upload date:
- Size: 107.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64420a45dcd77d702f442f8c318278a8ae0b6cf60c22ac9ff908e1f2ff90e263
|
|
| MD5 |
5dd5e04dfe3d1bfa2fc8e01eb2d922f4
|
|
| BLAKE2b-256 |
d7c9d2c87e33f125f660133287e8bebfd5e159242230baff1d4f1ed181d2c1d3
|
File details
Details for the file ucode_cli-2.5.5-py3-none-any.whl.
File metadata
- Download URL: ucode_cli-2.5.5-py3-none-any.whl
- Upload date:
- Size: 123.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56f2a3633d22b58f16f5244e76e2c5779fc504c56db6faaec4c7d145889537fa
|
|
| MD5 |
ee51c1fdc4bcdcc6eacd360368a72ef2
|
|
| BLAKE2b-256 |
78c50bcbfbfd5feb061066f9e2b2f75b85b6fd07640da4d43bb09ac19390a899
|