2022-09-20から1日間の記事一覧
https://atcoder.jp/contests/abc269/tasks/abc269_cABCのC問題を解いていきます。Pythonだとgeneratorを使ってこんな感じで書けますが、 def gen_submask(N, L): if L == 1: yield 0 if N == 1: yield 1 else: L1 = L / 2 L2 = L - L1 ns1 = list(gen_subma…
https://atcoder.jp/contests/abc269/tasks/abc269_cABCのC問題を解いていきます。Pythonだとgeneratorを使ってこんな感じで書けますが、 def gen_submask(N, L): if L == 1: yield 0 if N == 1: yield 1 else: L1 = L / 2 L2 = L - L1 ns1 = list(gen_subma…