Solutions for AtCoder problems.
The repo ships a self-contained C++23 environment (Clang 21.1.0) under .devcontainer, with no reliance on host paths or symlinks.
- Install the VS Code Dev Containers extension.
- Run “Dev Containers: Reopen in Container” to build the image; it includes Clang 21.1.0, lldb, clang-format/tidy, CMake, Ninja, Boost, Eigen,
online-judge-tools (oj), GitHub CLI (gh), and GNUtime. /usr/bin/clang-21and/usr/bin/clang++-21are used as the default compilers (C++23).- Host git config/ignore are mounted read-only into the container, and
alias g='git'is applied on start.
Add extra packages by editing .devcontainer/Dockerfile as needed.
VS Code tasks are preconfigured under .vscode/tasks.json:
test_atcoder_sample: downloads samples withoj dland runs them viaonlinejudge/cpp-test.sh(Clang 21.1.0, C++23; local-friendly flag set).submit_to_atcoder: submits viaonlinejudge/cpp-submit.shafteroj login.
Run these tasks from the command palette or the Run/Test UI while inside the dev container.
example: create solutions for A,B,C of ABC 123
new.sh abc 123 a,b,cIf you want to open the created files with your favorite editor, you can set the EDITOR_COMMAND environment variable. For example, using VSCode.
EDITOR_COMMAND=code new.sh abc 123 a,b,c