3 个不稳定版本
0.2.1 | 2020年7月7日 |
---|---|
0.2.0 | 2020年1月29日 |
0.1.0 | 2019年2月13日 |
#19 in #contest
25KB
587 行
Snowchains
在线编程竞赛工具。
特性
- 抓取YAML格式的示例案例
- 使用下载的示例案例测试源文件
- 提交源文件
- 下载您已提交的源文件
注册竞赛 | 获取示例测试案例 | 获取系统测试案例 | 提交 | 获取提交 | 观看提交 | |
---|---|---|---|---|---|---|
AtCoder | ✔️ | ✔️ | ✔️ | ✔️ | ❌ | ✔️ |
Codeforces | ❌ | ✔️ | N/A | ✔️ | ❌ | ❌ |
yukicoder | N/A | ✔️ | ✔️ | ✔️ | ❌ | ❌ |
安装
GitHub发布
https://github.com/qryxip/snowchains/releases
cargo install
(Crates.io)
$ cargo install snowchains
cargo install
(GitHub)
$ cargo install --git https://github.com/qryxip/snowchains
用法
$ snowchains -h
snowchains 0.5.2
Ryo Yamashita <[email protected]>
Tools for online programming contests
USAGE:
snowchains <SUBCOMMAND>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
SUBCOMMANDS:
init Create a new config file [aliases: i]
login Logges in to a service [aliases: l]
participate Participates in a contest
retrieve Retrieves data [aliases: r]
download Alias for `retrieve testcases` [aliases: d]
watch Watches data [aliases: w]
judge Tests code [aliases: j, test, t]
submit Submits code [aliases: s]
xtask Runs a custom subcommand written in the config file [aliases: x]
help Prints this message or the help of the given subcommand(s)
$ snowchains r -h
snowchains-retrieve 0.5.2
Ryo Yamashita <[email protected]>
Retrieves data
USAGE:
snowchains retrieve <SUBCOMMAND>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
SUBCOMMANDS:
languages Retrieves list of languages [aliases: l]
testcases Retrieves test cases [aliases: t]
submission-summaries Retrieves submission summaries [aliases: ss]
help Prints this message or the help of the given subcommand(s)
$ snowchains w -h
snowchains-watch 0.5.2
Ryo Yamashita <[email protected]>
Watches data
USAGE:
snowchains watch <SUBCOMMAND>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
SUBCOMMANDS:
submissions Watches your submissions [aliases: s]
help Prints this message or the help of the given subcommand(s)
$ snowchains i .
Wrote `/home/ryo/src/local/a/snowchains.dhall`
$ snowchains x setup -h
usage: snowchains xtask setup [-h] [-p [PROBLEM [PROBLEM ...]]] service contest {cpp,rs} {code,vim,emacs}
positional arguments:
service
contest
{cpp,rs}
{code,vim,emacs}
optional arguments:
-h, --help show this help message and exit
-p [PROBLEM [PROBLEM ...]], --problems [PROBLEM [PROBLEM ...]]
$ echo "$ATCODER_USERNAME\n$ATCODER_PASSWORD" | snowchains x setup atcoder practice cpp code
GET https://atcoder.jp/contests/practice/tasks ... 404 Not Found
GET https://atcoder.jp/contests/practice ... 200 OK
Username: Password: GET https://atcoder.jp/login ... 200 OK
POST https://atcoder.jp/login ... 302 Found
GET https://atcoder.jp/settings ... 200 OK
GET https://atcoder.jp/contests/practice ... 200 OK
GET https://atcoder.jp/contests/practice/tasks ... 200 OK
GET https://atcoder.jp/contests/practice/tasks_print ... 200 OK
A: Saved to /home/ryo/src/local/a/.snowchains/tests/atcoder/practice/a.yml (2 test cases)
B: Saved to /home/ryo/src/local/a/.snowchains/tests/atcoder/practice/b.yml (interactive problem)
Opening https://atcoder.jp/contests/practice/tasks/practice_1 ...
Opening https://atcoder.jp/contests/practice/tasks/practice_2 ...
许可证
双许可下 MIT 或 Apache-2.0。
依赖
~2.5MB
~52K SLoC