結果
問題 | No.2154 あさかつの参加人数 |
ユーザー |
![]() |
提出日時 | 2022-12-09 21:29:05 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 452 ms / 2,000 ms |
コード長 | 271 bytes |
コンパイル時間 | 276 ms |
コンパイル使用メモリ | 82,724 KB |
実行使用メモリ | 116,736 KB |
最終ジャッジ日時 | 2024-10-14 20:15:31 |
合計ジャッジ時間 | 12,909 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
N,M = map(int,input().split())imos = [0]*(N+2)for i in range(M):L,R = map(int,input().split())imos[R] += 1imos[L+1] -= 1now = 0ans = []for i in range(N+1):now += imos[i]ans.append(now)for k in range(len(ans)-1):print(ans[len(ans)-1-k])