競技プログラミングの環境構築 [VSCode+WSL+AtCoder Library]【ゆっくり解説】

2023/11/02 に公開
視聴回数 27,262
0
0
競技プログラミング(競プロ)の環境構築を初心者向けに徹底的にデモします。
まっさらなWindows 11にVSCodeとWSL(Ubuntu)とAtCoder Libraryを導入し、
PythonやC++のコードの実行やデバッグを行い、適宜UNIXコマンドも紹介します。

次回予定:全探索とは?問題を解くとは?(仮・今月上旬?)
前回:https://youtu.be/BPkZc3wsCxU
再生リスト:https://www.youtube.com/playlist?list=PLAYMgc8c_QezzZAEcnhI_Awo1QHWxE6FD

リンク集
MacでC++:https://qiita.com/EvtHorizonCoder/items/145724e16c1b57ab64eb
VSCodeダウンロード:https://code.visualstudio.com/download
VSCode公式チュートリアル(C++とWSL):https://code.visualstudio.com/docs/cpp/config-wsl
GitHub Copilot:https://docs.github.com/ja/copilot/getting-started-with-github-copilot
AtCoderサンプル問題:https://atcoder.jp/contests/practice
AtCoder Library:https://github.com/atcoder/ac-library
AtCoder Library サンプル問題のコード:https://atcoder.github.io/ac-library/master/document_ja/dsu.html

主なコマンド
wsl --install
sudo apt-get update
sudo apt-get install build-essential gdb python-is-python3

~/.bashrcへの追記内容
export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:ライブラリの場所
ulimit -s unlimited

(English subtitle available.)

0:00 はじめに
0:31 VSCode導入
2:26 GitHub Copilot
2:44 WSL導入
3:48 Ubuntu導入
4:44 Ubuntu導入後の準備
6:44 Python実行・デバッグ
9:16 WSLから提出
10:09 AtCoder Library導入
11:24 C++実行・デバッグ
15:29 次回予告

X (旧 Twitter): https://twitter.com/evima0