Skip to content

sachaos/ac-deck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)