結果

問題 No.2154 あさかつの参加人数
ユーザー pluto77pluto77
提出日時 2023-01-19 09:38:50
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 198 bytes
コンパイル時間 577 ms
コンパイル使用メモリ 10,428 KB
実行使用メモリ 27,784 KB
最終ジャッジ日時 2023-09-03 17:20:21
合計ジャッジ時間 46,005 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,985 ms
27,784 KB
testcase_01 TLE -
testcase_02 AC 1,981 ms
27,660 KB
testcase_03 TLE -
testcase_04 TLE -
testcase_05 AC 993 ms
8,116 KB
testcase_06 AC 1,543 ms
16,368 KB
testcase_07 AC 1,084 ms
20,556 KB
testcase_08 AC 976 ms
22,444 KB
testcase_09 AC 351 ms
18,192 KB
testcase_10 AC 911 ms
19,268 KB
testcase_11 AC 1,722 ms
25,612 KB
testcase_12 AC 1,336 ms
19,540 KB
testcase_13 AC 818 ms
12,380 KB
testcase_14 AC 1,468 ms
18,824 KB
testcase_15 AC 915 ms
21,896 KB
testcase_16 AC 1,408 ms
21,076 KB
testcase_17 AC 1,626 ms
18,564 KB
testcase_18 AC 1,718 ms
22,164 KB
testcase_19 AC 131 ms
10,040 KB
testcase_20 AC 1,401 ms
23,024 KB
testcase_21 AC 303 ms
17,116 KB
testcase_22 AC 594 ms
26,164 KB
testcase_23 AC 1,613 ms
22,796 KB
testcase_24 AC 1,801 ms
25,232 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