結果

問題 No.2154 あさかつの参加人数
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2022-12-09 22:07:39
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 432 ms / 2,000 ms
コード長 234 bytes
コンパイル時間 332 ms
コンパイル使用メモリ 87,204 KB
実行使用メモリ 89,020 KB
最終ジャッジ日時 2023-08-04 23:49:31
合計ジャッジ時間 13,521 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 429 ms
88,928 KB
testcase_01 AC 425 ms
88,744 KB
testcase_02 AC 432 ms
89,020 KB
testcase_03 AC 430 ms
88,928 KB
testcase_04 AC 428 ms
88,960 KB
testcase_05 AC 245 ms
78,124 KB
testcase_06 AC 384 ms
82,088 KB
testcase_07 AC 260 ms
84,836 KB
testcase_08 AC 251 ms
85,960 KB
testcase_09 AC 135 ms
83,640 KB
testcase_10 AC 243 ms
84,200 KB
testcase_11 AC 384 ms
87,708 KB
testcase_12 AC 331 ms
84,400 KB
testcase_13 AC 239 ms
79,768 KB
testcase_14 AC 355 ms
84,064 KB
testcase_15 AC 237 ms
85,396 KB
testcase_16 AC 340 ms
85,336 KB
testcase_17 AC 384 ms
83,664 KB
testcase_18 AC 394 ms
86,204 KB
testcase_19 AC 114 ms
78,884 KB
testcase_20 AC 326 ms
86,308 KB
testcase_21 AC 128 ms
83,040 KB
testcase_22 AC 157 ms
88,296 KB
testcase_23 AC 372 ms
86,164 KB
testcase_24 AC 397 ms
87,748 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m = map(int,input().split())
imos = [0]*(n+2)
for i in range(m):
    l,r = map(int,input().split())
    imos[r] += 1
    imos[l+1] -= 1
    
for i in range(n+1):
    imos[i+1] += imos[i]
    
for i in imos[1:n+1][::-1]:
    print(i)
0