Node.jsの実行環境があるgnu-timeがインストール済み- atcoder-cli ↗︎ と online-judge-tools ↗︎ がインストール済み
contestsディレクトリで以下のコマンドを実行します。
atcoder.jp/contest/の後にくるのが、コンテストID。
acc new <contest_id>
template.ts をコピーして main.ts を作成します。
./bin/copy-template.sh <destination directory>
<!-- 例 -->
./bin/copy-template.sh contests/abs/abc086a/
main.ts ファイルに解答を記述します。
以下のコマンドでテストを実行します。
oj t -c "npx ts-node main.ts" -d ./tests/ -N
注: -N オプションはスペースと改行の違いを無視します。
Node.js環境の場合。
acc submit main.ts -- -l 5058