goj

command module
v0.0.0-...-890fc1b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2021 License: MIT Imports: 26 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

goj

勉強として作っている AtCoder の補助ツールです。 (プログラミング初心者が作ったツールなので品質は察してください)

使い方

インストール

go install github.com/eru1a/goj@latest

設定ファイル

~/.config/goj/config.tomlに設定ファイルが置かれます。 デフォルトで使う言語や生成するテンプレートファイル等を変更出来ます。

ログイン

goj login

ユーザー名とパスワードを聞かれるので入力してください。 cookiejar が~/.cache/goj/cookiejar に保存されます。 コンテスト本番時以外はログインは不要です。

テストケースのダウンロード

goj download [-l language] [url] or [contest/problem] or [contest]

https://atcoder.jp/contests/contest/tasks/problemのサンプルケースをダウンロードします。

[contest]を渡した場合はコンテストの問題すべてのサンプルケースをダウンロードします。

単にgoj downloadとした場合はカレントディレクトリの名前をコンテスト名と見なしダウンロードします。

[-l language]で作成されるテンプレートファイルの言語を変更出来ます。

ダウンロードした問題の情報は./goj.tomlに記録されます。

テスト

goj test [-l language] [-c command] [problem]

問題 problem のテストを行います。 problem は問題名の suffix に一致していれば大丈夫です。 例えば abc175_b であればgoj test bでいいです(あるいはgoj test 75_bとかでも)。

[problem]を省略した場合は最後に編集されたファイルの名前を問題名と見なしてテストします。

[-l language]でテストする言語を変更出来ます。

[-c command]でテストするコマンドを指定できます。この場合 problem は必須になります。

提出

goj submit [-l language] [--skip] [problem]

問題 problem に対してテストを行い成功したらproblem.cppを提出します。 コンテスト名は./goj.tomlから取得するため、goj downloadした問題でなければ提出出来ません。

problemを省略した場合は最後に編集されたファイルの名前を提出する問題と見なします。

[-l language]で提出する言語を変更出来ます。

[--skip]でテストをスキップ出来ます。

その他コマンド

goj status [contest]

contest での自分の提出結果を表示します。

demo

demo

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址