SSlime-s / create-contest-dir

Rust での AtCoder のコンテスト向けのディレクトリを作る

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deprecated

use https://github.com/qryxip/cargo-compete

cargo compete 色々できて便利なのでこっちがおすすめです

AtCoder Create Contest

AtCoder のコンテストに Rust で参加する際のディレクトリを簡単に作成することができます cargo test-x でサンプルケースのテストもできます 提出の際は src/x.rs を提出してください

install

cargo install --git https://github.com/SSlime-s/create-contest-dir --branch main

usage

directory 作成

usage:
  create-contest [{-u|--url} <URL>] [{-n|--name} <NAME>] [{-t|--type} <TYPE>]

args:
  -u --url <URL>   コンテストの URL
  -n --name <NAME> コンテストの名前 (ディレクトリの名前になります)
  -t --type {abc|arc|agc|h-abc|s-abc} コンテストの種類 (h-abc: 平成ABC(6問), s-abc: 昭和ABC(4問))

  --url もしくは --name, --type は必須 ただしスポンサードコンテストでは --type も必須 (zoon-2020 等 URL に abc.. などが含まれないもの)

login

進行中のコンテストのサンプルケース取得に必要です(cookie は保存しますが、password は保存しません)

usage:
  create-contest login [{-u|--user} <USER_NAME>]
args:
  -u --user <USER_NAME> AtCoder のユーザーネーム

テストケース作成 (未実装)

create-contest する際に url を指定していれば自動で生成されますが、nametype を指定して作成した場合はこちらを使ってください

usage:
  create-contest add_test {-u|--url} <URL>

args:
  -u --user <URL> コンテストの URL

test

誤差ジャッジやインタラクティブ・解が複数あるもの には対応していません

usage:
  cargo test-{a|b|...}

args:
  test-x テストしたい問題に対して test-x とすることでその問題のテストができます
         cargo test --test x へのエイリアスです

run

usage:
  cargo run-{a|b|...}
  cargo {a|b|...}

args:
  x run-x 実行したいものに対して run-x または x とすることで実行ができます
          cargo run --bin x へのエイリアスです

example

create-contest login -u SSlime
create-contest login
create-contest --url https://atcoder.jp/contests/abc212 --type ABC --name abc-212
create-contest -u https://atcoder.jp/contests/abc212
create-contest -u https://atcoder.jp/contests/zone2021 --type H-ABC
create-contest -n abc-212 -t abc
create-contest -u https://atcoder.jp/contests/abc212

About

Rust での AtCoder のコンテスト向けのディレクトリを作る

License:MIT License


Languages

Language:Rust 100.0%