結果

問題 No.2154 あさかつの参加人数
ユーザー 👑 timitimi
提出日時 2022-12-09 21:55:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 420 ms / 2,000 ms
コード長 162 bytes
コンパイル時間 202 ms
コンパイル使用メモリ 82,168 KB
実行使用メモリ 80,916 KB
最終ジャッジ日時 2024-04-22 21:57:55
合計ジャッジ時間 13,301 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 415 ms
80,720 KB
testcase_01 AC 415 ms
80,916 KB
testcase_02 AC 420 ms
80,628 KB
testcase_03 AC 420 ms
80,776 KB
testcase_04 AC 419 ms
80,640 KB
testcase_05 AC 229 ms
76,480 KB
testcase_06 AC 365 ms
78,044 KB
testcase_07 AC 237 ms
79,272 KB
testcase_08 AC 226 ms
79,520 KB
testcase_09 AC 106 ms
78,468 KB
testcase_10 AC 219 ms
78,800 KB
testcase_11 AC 367 ms
80,308 KB
testcase_12 AC 317 ms
79,140 KB
testcase_13 AC 222 ms
77,052 KB
testcase_14 AC 338 ms
78,652 KB
testcase_15 AC 216 ms
79,440 KB
testcase_16 AC 318 ms
78,756 KB
testcase_17 AC 371 ms
78,648 KB
testcase_18 AC 377 ms
79,452 KB
testcase_19 AC 89 ms
76,640 KB
testcase_20 AC 303 ms
79,248 KB
testcase_21 AC 100 ms
78,548 KB
testcase_22 AC 129 ms
80,224 KB
testcase_23 AC 351 ms
79,692 KB
testcase_24 AC 385 ms
79,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M=map(int, input().split())
D=[0]*(N+1)
for i in range(M):
  a,b=map(int, input().split())
  D[N-a]+=1
  D[N-b+1]-=1
d=0
for i in range(N):
  d+=D[i]
  print(d)
0