m0ch1m0ch1 / ac-deck

Unofficial CLI for AtCoder users.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AC Deck

Unofficial CLI for AtCoder users.

Demo

demo

Features

  • Template (built-in)
  • Run test on Docker or Native
  • Submit code to AtCoder
  • Support major languages (If you want to add another languages, please send PR.)

Install

Linux

Download binary from Release page

$ curl -L -o ./ac-deck.tar.gz https://github.com/sachaos/ac-deck/releases/download/v0.3.4/ac-deck_0.3.4_Linux_x86_64.tar.gz && mkdir ./ac-deck-bin && tar xvzf ./ac-deck.tar.gz -C ./ac-deck-bin && sudo mv ./ac-deck-bin/acd /usr/local/bin/acd && sudo chmod +x /usr/local/bin/acd

Mac OS X

$ brew install sachaos/tap/ac-deck

Build it yourself

You need go 1.13.

$ git clone https://github.com/sachaos/ac-deck.git
$ cd ac-deck
$ make install

Setup

Configure authentication information

$ acd config

WARNING: This software store raw authentication information on ~/.ac-deck.toml. This is not secure. Please understand this behavior, and use carefully. Please contribute if you interest to fix this behavior.

Install test runnder

$ acd install python3

Usage

Prepare to solve problems

$ acd prepare abc153

Specify language to solve

$ acd prepare --language python3 abc153

Browse problem (on web browser)

$ acd abc153/abc153_a browse

Edit code

$ acd abc153/abc153_a edit

You can customize the editor by $EDITOR environment variable.

Test

$ acd abc153/abc153_a test

Submit if test passed

$ acd abc153/abc153_a submit

Submit without test

$ acd abc153/abc153_a submit --skip-test

Supporting Language

AtCoder Languages and Compiler options

  • C++ (GCC 9.2.1)
  • Python3 (3.8.2)
  • Go (1.14.1)
    • You cannot use gonum, gods now.
  • Rust (1.42.0)

About

Unofficial CLI for AtCoder users.

License:Apache License 2.0


Languages

Language:Go 95.4%Language:Dockerfile 2.1%Language:C++ 0.6%Language:Makefile 0.4%Language:Python 0.3%Language:Rust 0.3%Language:C# 0.3%Language:Java 0.2%Language:C 0.2%Language:Ruby 0.1%