← All slides

Competitive Programming for Beginners — Slides

30 lessons, 579 slides. Each lesson's text and code as one deck (the slides are in Japanese).

Version 1 (made 2026-11-06)

Payment is handled on Stripe's page. After buying, you can download from this page at any time.

Please log in to use a coupon code. You can also enter a promotion code on the payment page (Stripe).

Samples

Sample slide 1 Sample slide 2 Sample slide 3

What's included

  • slides.pdf — One slide per page. For checking or printing
  • png/ — 1920×1080 images, ready to drop into a video editor
  • index.html — Open in a browser to present. Press P for the presenter view (notes, next slide, elapsed time)

Each lesson has its own folder. The lesson text is kept as is, so what to say appears in the presenter notes.

How you may use them

  • Your own study
  • Classes, lectures and study groups you teach yourself
  • In-house training at your own company or organization
  • On screen in videos you record yourself for those classes or trainings
  • Editing the wording or reordering slides for those uses
  • Handing out the slide files themselves (PDF, PNG, HTML) to learners or anyone else
  • Selling the slides, or edited versions of them, or including them in paid materials
  • Posting them anywhere public (websites, social media, public videos on video sites, etc.)
  • Removing the 4peiron.dev credit and presenting them as your own work

4peiron.dev keeps the copyright. What you buy is the right to use the slides as described above. The same terms are in README.txt inside the ZIP.

Contents

1

競技プログラミングの始め方と入力の受け取り方

18 slides

2

制約から計算量を逆算する

19 slides

3

定数倍を落として間に合わせる

20 slides

4

桁あふれと浮動小数の罠

15 slides

5

よくある落とし穴と提出前チェック

19 slides

6

全列挙から始める(二重ループと combinations)

18 slides

7

ビット全探索:選ぶ/選ばないを整数で表す

17 slides

8

順列全探索:並べ方をすべて試す

16 slides

9

再帰で全列挙する

19 slides

10

枝刈りで全探索を間に合わせる

19 slides

11

答えを二分探索する

19 slides

12

しゃくとり法:右端を戻さない

20 slides

13

累積和:区間の和を一瞬で

18 slides

14

二次元累積和:長方形の和を 4 回の足し引きで

20 slides

15

いもす法:区間への足し込みをまとめる

19 slides

16

DP の立て方:状態を決めて、遷移を書く

19 slides

17

0-1 ナップサック:選ぶ/選ばないの表

19 slides

18

部分和と個数無制限ナップサック

20 slides

19

二次元 DP:最長共通部分列と編集距離

19 slides

20

区間 DP:短い区間から長い区間へ

18 slides

21

bitDP:訪問済みの集合を添字にする

20 slides

22

【実践】遷移を自分で設計する(最長増加部分列)

19 slides

23

グラフの受け取り方と隣接リスト

21 slides

24

最短経路:4 つの道具を使い分ける

23 slides

25

Union-Find:つながりを管理する

23 slides

26

最小全域木:全部つなぐ最小コスト

21 slides

27

トポロジカルソートと DAG 上の DP

20 slides

28

時間内に解く進め方

18 slides

29

【実践】典型を 3 問続けて解く

22 slides

30

デバッグの型と、次に進む先

21 slides

The lesson text is on the course page. Slides are sold separately from the membership; members also need to buy them. Refunds follow the Terms of Service.