Skip to content

rkitamu/atcoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

279 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AtCoder workspace

AtCoder workspace. This repository provides a preconfigured environment for participating in AtCoder contests using Go, C#, and other languages.

Supported Languages

This workspace currently supports:

  • Go (default)
  • C#

⚙️ Setup

To get started instantly with a preconfigured environment using Dev Containers, follow these steps:

1. Launch in DevContainer

  1. Open this project in VS Code and run:
Cmd+Shift+P → Dev Containers: Reopen in Container
  1. Restart VS Code

Why: The acc command will not be available in the terminal until VS Code is restarted after the container is built.

  1. Run the VS Code task [setup] After container setup

2. Login to the tools

  1. Login to AtCoder on your browser.
  2. Copy the REVEL_SESSION from developer tools -> Application -> Storage -> Cookies -> https://atcoder.jp -> REVEL_SESSION.
  3. Run aclogin.
$ aclogin

Paste copied REVEL_SESSION

  1. Run VSCode task: [setup] Update atcoder-cli template
  2. Complete

3. (Optional) Set up another language

With the above setup you can participate in contests using Go, but there’s limited support for a few other languages as well.

Run the VS Code task [setup] xx environment (replace xx with the language name) to set up the environment for solving problems in that language.

🚀 Usage

Basic Workflow

  1. Create a new contest workspace:
$ acc new abc123 --template go
  1. Write your solution: Edit the generated main.go file in each problem directory.

  2. Test your solution:

Open Edited main.go file and run the test task: Run Test Cases

  1. Submit your solution:

TODO: Not available yet. See issue: Tatamo/atcoder-cli#68

$ acc submit

📁 Directory Structure

atcoder/
├── problems/                 # All contest problems live here
│   ├── {ContestID}/
│   │   ├── a/
├── scripts                   # utility scripts (call by vscode tasks)
├── settings                  # each tool settings
├── tools                     # utility tools
├── .gitignore
└── README.md

License

This project is licensed under the MIT License.

It includes code from gosagawa/atcoder, which is also licensed under the MIT License.

About

My AtCoder workspace

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors