Skip to main content

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 - Multitest
  • integer n integer 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ách
  • string s[m] - xâu s gồm $m$ ký tự
  • double L double 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]

Output

  • boolean YES|NO - Kết quả bài toán
  • integer- Kết quả bài toán
  • double(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.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 convert create new problem code

[2.0.5] - 2020-10-24

Added

  • Added ucode dsa convert to convert from other (Themis) testcase format to ucode format

[2.0.1] - 2020-10-12

Added

  • Moved from obsoleted toolbox
  • Major version bumped

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

ucode-cli-2.2.0.tar.gz (91.9 kB view details)

Uploaded Source

Built Distribution

ucode_cli-2.2.0-py3-none-any.whl (107.3 kB view details)

Uploaded Python 3

File details

Details for the file ucode-cli-2.2.0.tar.gz.

File metadata

  • Download URL: ucode-cli-2.2.0.tar.gz
  • Upload date:
  • Size: 91.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/57.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

File hashes

Hashes for ucode-cli-2.2.0.tar.gz
Algorithm Hash digest
SHA256 9269fcc64d4904214fdc24539998496e0bf0f97dc8eebe048274c81fb7b982ae
MD5 39bf9247773792734c8d27ecf7540665
BLAKE2b-256 38eb43e163b8d4a84e2c789d917fe5b7d4fe0a9e17a5b5b41dfdcad3f4b372b9

See more details on using hashes here.

File details

Details for the file ucode_cli-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: ucode_cli-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 107.3 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

Hashes for ucode_cli-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 267645eb8525cc908683c4517896ab01698e4aa5854a8e4bdef59b0cb587e8e3
MD5 066675a21707a269b8ff9dc35d2ef27b
BLAKE2b-256 1b2533bd060782c762276bc44ec37d18390add9e8043f2871422b0a25b950f1e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page