結果

問題 No.2154 あさかつの参加人数
ユーザー pluto77pluto77
提出日時 2023-06-20 15:48:41
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,891 ms / 2,000 ms
コード長 185 bytes
コンパイル時間 130 ms
コンパイル使用メモリ 10,620 KB
実行使用メモリ 27,820 KB
最終ジャッジ日時 2023-09-10 11:26:04
合計ジャッジ時間 41,634 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,867 ms
27,808 KB
testcase_01 AC 1,891 ms
27,820 KB
testcase_02 AC 1,850 ms
27,676 KB
testcase_03 AC 1,849 ms
27,756 KB
testcase_04 AC 1,880 ms
27,700 KB
testcase_05 AC 1,028 ms
8,368 KB
testcase_06 AC 1,474 ms
16,592 KB
testcase_07 AC 937 ms
20,632 KB
testcase_08 AC 918 ms
22,460 KB
testcase_09 AC 300 ms
18,328 KB
testcase_10 AC 838 ms
19,440 KB
testcase_11 AC 1,609 ms
25,720 KB
testcase_12 AC 1,290 ms
19,288 KB
testcase_13 AC 784 ms
12,572 KB
testcase_14 AC 1,413 ms
18,800 KB
testcase_15 AC 841 ms
22,080 KB
testcase_16 AC 1,368 ms
21,072 KB
testcase_17 AC 1,557 ms
18,516 KB
testcase_18 AC 1,652 ms
22,236 KB
testcase_19 AC 122 ms
10,020 KB
testcase_20 AC 1,288 ms
23,020 KB
testcase_21 AC 253 ms
17,216 KB
testcase_22 AC 492 ms
26,252 KB
testcase_23 AC 1,528 ms
22,876 KB
testcase_24 AC 1,687 ms
25,192 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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