結果

問題 No.2154 あさかつの参加人数
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2022-12-09 22:07:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 370 ms / 2,000 ms
コード長 234 bytes
コンパイル時間 373 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 87,808 KB
最終ジャッジ日時 2024-04-22 22:15:18
合計ジャッジ時間 10,908 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 358 ms
87,808 KB
testcase_01 AC 370 ms
87,504 KB
testcase_02 AC 363 ms
87,628 KB
testcase_03 AC 349 ms
87,780 KB
testcase_04 AC 364 ms
87,424 KB
testcase_05 AC 198 ms
76,544 KB
testcase_06 AC 291 ms
81,228 KB
testcase_07 AC 202 ms
83,328 KB
testcase_08 AC 199 ms
84,936 KB
testcase_09 AC 95 ms
82,428 KB
testcase_10 AC 181 ms
83,056 KB
testcase_11 AC 321 ms
86,528 KB
testcase_12 AC 269 ms
82,704 KB
testcase_13 AC 188 ms
78,848 KB
testcase_14 AC 301 ms
82,688 KB
testcase_15 AC 193 ms
83,968 KB
testcase_16 AC 274 ms
83,944 KB
testcase_17 AC 324 ms
82,304 KB
testcase_18 AC 314 ms
84,984 KB
testcase_19 AC 79 ms
77,568 KB
testcase_20 AC 256 ms
85,004 KB
testcase_21 AC 88 ms
82,176 KB
testcase_22 AC 118 ms
87,416 KB
testcase_23 AC 312 ms
84,992 KB
testcase_24 AC 327 ms
86,784 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