AtCoder workspace. This repository provides a preconfigured environment for participating in AtCoder contests using Go, C#, and other languages.
This workspace currently supports:
- Go (default)
- C#
To get started instantly with a preconfigured environment using Dev Containers, follow these steps:
- Open this project in VS Code and run:
Cmd+Shift+P → Dev Containers: Reopen in Container- Restart VS Code
Why: The acc command will not be available in the terminal until VS Code is restarted after the container is built.
- Run the VS Code task
[setup] After container setup
- Login to AtCoder on your browser.
- Copy the REVEL_SESSION from developer tools -> Application -> Storage -> Cookies -> https://atcoder.jp -> REVEL_SESSION.
- Run
aclogin.
$ acloginPaste copied REVEL_SESSION
- Run VSCode task:
[setup] Update atcoder-cli template - Complete
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.
- Create a new contest workspace:
$ acc new abc123 --template go-
Write your solution: Edit the generated
main.gofile in each problem directory. -
Test your solution:
Open Edited main.go file and run the test task: Run Test Cases
- Submit your solution:
TODO: Not available yet. See issue: Tatamo/atcoder-cli#68
$ acc submitatcoder/
├── 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
This project is licensed under the MIT License.
It includes code from gosagawa/atcoder, which is also licensed under the MIT License.