2018-12-16 AtCoder Grand Contest 029:A - Irreversible operation 競技プログラミング AtCoder 300 点問題 問題 解法 解答 問題 beta.atcoder.jp 解法 それぞれの W より左にある B の数の合計が答えになる. 解答 beta.atcoder.jp