Giter Club home page Giter Club logo

atcoder-template's Introduction

atcoder-template

目次

前提

  • Node.js, Python3, Go のいずれかの実行環境がある
  • direnv, gnu-time がインストールされている
brew install direnv gnu-time

環境構築

(~) $ python3 -m venv .venv
(~) $ yarn install
(~) $ direnv allow
(~) $ pip3 install -r requirements.txt
(~) $ acc config oj-path $(which oj) # 基本的には oj コマンドのパスは自動で検出されますが、必要に応じて手動で設定してください

ログイン

(~) $ acc login
(~) $ oj login https://atcoder.jp

問題のダウンロード

(~) $ acc new abc001
(~) $ cd abc001/
(~/abc001) $ acc tasks # 問題の一覧を表示
(~/abc001) $ acc add # 問題を追加でダウンロード
(~/abc001) $ cd a/

使い方(TypeScript)

(~/abc001/a) $ code (vim/nvim) main.ts
(~/abc001/a) $ oj -t "ts-node main.ts" -d ./tests
(~/abc001/a) $ acc submit main.ts -- --language 5058

使い方(Python)

(~/abc001/a) $ code (vim/nvim) main.py
(~/abc001/a) $ oj -t "python3 main.py" -d ./tests
(~/abc001/a) $ acc submit main.py -- --language 5055

使い方(Go)

(~/abc001/a) $ code (vim/nvim) main.go
(~/abc001/a) $ oj -t "go run main.go" -d ./tests
(~/abc001/a) $ acc submit main.go -- --language 5002

atcoder-template's People

Contributors

koki-table avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.