結果

問題 No.2154 あさかつの参加人数
ユーザー RustyRusty
提出日時 2023-01-05 00:29:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 225 bytes
コンパイル時間 884 ms
コンパイル使用メモリ 10,720 KB
実行使用メモリ 27,868 KB
最終ジャッジ日時 2023-08-18 22:05:34
合計ジャッジ時間 46,325 ms
ジャッジサーバーID
(参考情報)
judge10 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 TLE -
testcase_02 TLE -
testcase_03 TLE -
testcase_04 TLE -
testcase_05 AC 1,010 ms
8,328 KB
testcase_06 AC 1,561 ms
16,496 KB
testcase_07 AC 1,003 ms
20,612 KB
testcase_08 AC 991 ms
22,472 KB
testcase_09 AC 355 ms
18,240 KB
testcase_10 AC 913 ms
19,376 KB
testcase_11 AC 1,754 ms
25,556 KB
testcase_12 AC 1,333 ms
19,424 KB
testcase_13 AC 814 ms
12,400 KB
testcase_14 AC 1,488 ms
18,840 KB
testcase_15 AC 936 ms
21,892 KB
testcase_16 AC 1,435 ms
21,100 KB
testcase_17 AC 1,622 ms
18,516 KB
testcase_18 AC 1,736 ms
22,068 KB
testcase_19 AC 131 ms
10,180 KB
testcase_20 AC 1,405 ms
22,928 KB
testcase_21 AC 302 ms
17,124 KB
testcase_22 AC 589 ms
26,224 KB
testcase_23 AC 1,595 ms
22,736 KB
testcase_24 AC 1,762 ms
25,424 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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