結果
問題 | No.2154 あさかつの参加人数 |
ユーザー |
![]() |
提出日時 | 2022-12-14 20:25:35 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 1,880 ms / 2,000 ms |
コード長 | 342 bytes |
コンパイル時間 | 873 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 46,240 KB |
最終ジャッジ日時 | 2024-11-08 12:03:15 |
合計ジャッジ時間 | 41,524 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
from itertools import accumulatedef main():n, m = map(int, input().split())lst = [0] * (n + 1)for _ in range(m):left, right = map(int, input().split())lst[n - left] += 1lst[n - right + 1] -= 1acc = list(accumulate(lst))print(*acc[:-1], sep="\n")if __name__ == "__main__":main()