結果

問題 No.2154 あさかつの参加人数
ユーザー achapiachapi
提出日時 2022-12-09 21:30:08
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 394 ms / 2,000 ms
コード長 182 bytes
コンパイル時間 249 ms
コンパイル使用メモリ 82,556 KB
実行使用メモリ 97,576 KB
最終ジャッジ日時 2024-04-22 20:45:28
合計ジャッジ時間 10,880 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 375 ms
97,496 KB
testcase_01 AC 394 ms
97,368 KB
testcase_02 AC 362 ms
97,372 KB
testcase_03 AC 380 ms
97,440 KB
testcase_04 AC 375 ms
97,576 KB
testcase_05 AC 197 ms
76,456 KB
testcase_06 AC 309 ms
85,848 KB
testcase_07 AC 223 ms
89,564 KB
testcase_08 AC 206 ms
91,028 KB
testcase_09 AC 101 ms
84,836 KB
testcase_10 AC 196 ms
88,084 KB
testcase_11 AC 337 ms
95,488 KB
testcase_12 AC 273 ms
89,084 KB
testcase_13 AC 187 ms
80,900 KB
testcase_14 AC 295 ms
88,244 KB
testcase_15 AC 194 ms
90,416 KB
testcase_16 AC 287 ms
90,776 KB
testcase_17 AC 317 ms
87,812 KB
testcase_18 AC 323 ms
92,180 KB
testcase_19 AC 75 ms
78,044 KB
testcase_20 AC 264 ms
92,108 KB
testcase_21 AC 87 ms
83,752 KB
testcase_22 AC 127 ms
91,724 KB
testcase_23 AC 306 ms
91,912 KB
testcase_24 AC 322 ms
94,772 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m=map(int,input().split())
s=[0]*(n+1)
for i in range(m):
    a,b=map(int,input().split())
    s[n-a]+=1
    s[n-b+1]-=1
for i in range(n-1):s[i+1]+=s[i]
s.pop()
print(*s,sep="\n")
0