結果

問題 No.2154 あさかつの参加人数
ユーザー titiatitia
提出日時 2022-12-09 21:25:55
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,302 ms / 2,000 ms
コード長 242 bytes
コンパイル時間 240 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 30,320 KB
最終ジャッジ日時 2024-04-22 20:08:29
合計ジャッジ時間 25,201 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,302 ms
30,260 KB
testcase_01 AC 1,159 ms
30,320 KB
testcase_02 AC 1,176 ms
30,312 KB
testcase_03 AC 1,166 ms
30,208 KB
testcase_04 AC 1,185 ms
30,208 KB
testcase_05 AC 493 ms
10,624 KB
testcase_06 AC 817 ms
18,944 KB
testcase_07 AC 623 ms
23,168 KB
testcase_08 AC 645 ms
25,216 KB
testcase_09 AC 299 ms
20,864 KB
testcase_10 AC 569 ms
22,016 KB
testcase_11 AC 1,016 ms
28,160 KB
testcase_12 AC 771 ms
22,144 KB
testcase_13 AC 468 ms
14,720 KB
testcase_14 AC 833 ms
21,376 KB
testcase_15 AC 605 ms
24,576 KB
testcase_16 AC 812 ms
23,808 KB
testcase_17 AC 879 ms
21,120 KB
testcase_18 AC 984 ms
24,832 KB
testcase_19 AC 106 ms
12,800 KB
testcase_20 AC 838 ms
25,600 KB
testcase_21 AC 266 ms
19,840 KB
testcase_22 AC 511 ms
28,800 KB
testcase_23 AC 919 ms
25,088 KB
testcase_24 AC 1,066 ms
27,904 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

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