- AtCoder
- AtCoder Problems / ichiya_x
- Notion log - more details about settings
uv sync
If you haven't activated venv, execute below:
source venv/bin/activate
It is required to download and submit problems.
oj login https://atcoder.jp
Note
atcoder-tools
The first time you execute atcoder-tools
command, you are asked to log in.
Copy atcodertools.toml
in current directory to ~/.atcodertools.toml
.
cp atcodertools.toml ~/.atcodertools.toml
- Open
keybindings.json
in vscode. (Command Pallete
>Preferences: Open Keyboard Shortcuts (JSON)
) - Append below to
keybindings.json
:{ "key": "ctrl+shift+c", "command": "workbench.action.tasks.runTask", "when": "editorTextFocus", "args": "AtCoder_Test" }, { "key": "cmd+ctrl+shift+s", "command": "workbench.action.tasks.runTask", "when": "editorTextFocus", "args": "AtCoder_Submit" }
Note
AtCoder_Test
and AtCoder_Submit
are task names in .vscode/tasks.json
.
sh tools/download_problem.sh <CONTEST_ID>
# e.g. sh download_problem.sh abc326
before executing below command, edit variables (start
, end
) in tools/seq_download_problem.py
python tools/seq_download_problems.py
<CONTEST_ID>/<PROBLEM_LEVEL>/main.py
# e.g. abc326/A/main.py
in <CONTEST_ID>/<PROBLEM_LEVEL>/main.py
Execute with shortcut (shift + ctrl + c) in macOS.
Then open new terminal and execute test automatically.
This shortcut is added to keybindings.json
in vscode.
Execute with shortcut (cmd + shift + ctrl + s) in macOS.
Then open new terminal and execute submit automatically.
This shortcut is added to keybindings.json
in vscode.