結果

問題 No.2154 あさかつの参加人数
ユーザー RuteRute
提出日時 2022-12-11 02:37:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 236 bytes
コンパイル時間 250 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 30,592 KB
最終ジャッジ日時 2024-04-23 02:51:08
合計ジャッジ時間 44,905 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 TLE -
testcase_02 TLE -
testcase_03 TLE -
testcase_04 TLE -
testcase_05 AC 1,225 ms
11,008 KB
testcase_06 AC 1,819 ms
19,200 KB
testcase_07 AC 1,124 ms
23,424 KB
testcase_08 AC 1,047 ms
25,344 KB
testcase_09 AC 374 ms
21,120 KB
testcase_10 AC 958 ms
22,144 KB
testcase_11 AC 1,875 ms
28,416 KB
testcase_12 AC 1,464 ms
22,272 KB
testcase_13 AC 974 ms
15,232 KB
testcase_14 AC 1,678 ms
21,632 KB
testcase_15 AC 1,017 ms
24,832 KB
testcase_16 AC 1,536 ms
23,936 KB
testcase_17 AC 1,839 ms
21,504 KB
testcase_18 AC 1,874 ms
25,216 KB
testcase_19 AC 149 ms
12,928 KB
testcase_20 AC 1,517 ms
25,728 KB
testcase_21 AC 310 ms
19,968 KB
testcase_22 AC 594 ms
28,928 KB
testcase_23 AC 1,770 ms
25,472 KB
testcase_24 AC 1,972 ms
28,160 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, M = map(int,input().split())
imos = [0 for x in range(N+10)]
for x in range(M):
  l,r = map(int,input().split())
  imos[N-l] += 1
  imos[N-r+1] -= 1
for x in range(1, N+10):
  imos[x] += imos[x-1]

for x in range(N):
  print(imos[x])
0