結果

問題 No.2154 あさかつの参加人数
ユーザー sepa38sepa38
提出日時 2022-12-09 21:24:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 440 ms / 2,000 ms
コード長 213 bytes
コンパイル時間 345 ms
コンパイル使用メモリ 82,040 KB
実行使用メモリ 97,840 KB
最終ジャッジ日時 2024-04-22 19:50:04
合計ジャッジ時間 12,757 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 440 ms
97,664 KB
testcase_01 AC 439 ms
97,480 KB
testcase_02 AC 435 ms
97,412 KB
testcase_03 AC 434 ms
97,352 KB
testcase_04 AC 438 ms
97,840 KB
testcase_05 AC 231 ms
76,544 KB
testcase_06 AC 372 ms
85,460 KB
testcase_07 AC 247 ms
89,284 KB
testcase_08 AC 241 ms
91,136 KB
testcase_09 AC 130 ms
85,248 KB
testcase_10 AC 247 ms
87,936 KB
testcase_11 AC 409 ms
95,360 KB
testcase_12 AC 337 ms
88,704 KB
testcase_13 AC 227 ms
81,152 KB
testcase_14 AC 362 ms
88,576 KB
testcase_15 AC 252 ms
90,368 KB
testcase_16 AC 346 ms
90,240 KB
testcase_17 AC 391 ms
87,808 KB
testcase_18 AC 405 ms
91,648 KB
testcase_19 AC 103 ms
78,336 KB
testcase_20 AC 338 ms
92,032 KB
testcase_21 AC 119 ms
83,968 KB
testcase_22 AC 155 ms
91,776 KB
testcase_23 AC 385 ms
92,032 KB
testcase_24 AC 420 ms
94,848 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m = map(int, input().split())
ans = [0] * n
for _ in range(m):
  l, r = map(int, input().split())
  ans[-l] += 1
  if -r + 1:
    ans[-r+1] -= 1
for i in range(n-1):
  ans[i+1] += ans[i]
print(*ans, sep = "\n")
0