2020-08-02から1日間の記事一覧
隙間時間にちょくちょくと https://atcoder.jp/contests/abc026/tasks/abc026_b 例通りに実装しただけ! import math m=int(input()) a=[int(input()) for i in range(m)] a.sort(reverse=True) q = 0 count = 0 for i in a: count += 1 if count % 2 == 1: …
隙間時間にちょくちょくと https://atcoder.jp/contests/abc026/tasks/abc026_b 例通りに実装しただけ! import math m=int(input()) a=[int(input()) for i in range(m)] a.sort(reverse=True) q = 0 count = 0 for i in a: count += 1 if count % 2 == 1: …