Skip to content

ShotaKashihara/atcoder-cli-swift

Repository files navigation

AtCoderCLI for Swift (accs)

Unit Test

Tatamo/atcoder-cli にインスパイアされた Swift-er 向けの AtCoder CLI です。

コンテストに対応する Swift Package プロジェクトを作成します。

  • Swift Package プロジェクトには各問題に対応する Target と TestTarget が含まれます。
  • XCTest のテストケースを問題のサンプル入出力から自動で作成します。

Install

brew install ShotaKashihara/tap/accs

Usage

$ accs new abc001 # "abc001/" directory will be created
$ cd abc001/
$ open Package.swift # Launch Swift Package project with Xcode
# ... write your solution ...
$ accs submit {:problem_alphabet} # to use submit function

Requirements

online-judge-tools コンテスト情報の取得のため、oj-api というコマンドに依存しています

oj login https://atcoder.jp/
> Username: kashihararara
> Password:

Documents

Getting Started