競技プログラミングの問題を解いてみたメモ
AtCoder Beginner Contest
No.015 C
問題
コード
すべての回答パターンは 通りであるので, 全探索で十分間に合う.