結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 TLE -
testcase_02 TLE -
testcase_03 TLE -
testcase_04 TLE -
testcase_05 AC 1,341 ms
15,088 KB
testcase_06 AC 1,847 ms
21,632 KB
testcase_07 AC 1,175 ms
25,108 KB
testcase_08 AC 1,122 ms
26,524 KB
testcase_09 AC 435 ms
23,140 KB
testcase_10 AC 1,070 ms
24,136 KB
testcase_11 AC 1,952 ms
28,964 KB
testcase_12 AC 1,624 ms
24,144 KB
testcase_13 AC 1,048 ms
18,292 KB
testcase_14 AC 1,751 ms
23,644 KB
testcase_15 AC 1,065 ms
26,160 KB
testcase_16 AC 1,663 ms
25,368 KB
testcase_17 AC 1,880 ms
23,560 KB
testcase_18 AC 1,983 ms
26,272 KB
testcase_19 AC 258 ms
16,688 KB
testcase_20 AC 1,606 ms
27,208 KB
testcase_21 AC 390 ms
22,392 KB
testcase_22 AC 626 ms
29,480 KB
testcase_23 AC 1,843 ms
26,944 KB
testcase_24 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m = map(int, input().split())
imos = [0]*550000
for i in range(m):
    r, l = map(int, input().split())
    l -= 1
    imos[l] += 1
    imos[r] -= 1

for i in range(549999):
    imos[i+1] += imos[i]
for i in range(n-1, -1, -1):
    print(imos[i])
0