結果

問題 No.2154 あさかつの参加人数
ユーザー WoqpDFWoqpDF
提出日時 2022-12-09 21:47:22
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 387 bytes
コンパイル時間 164 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 84,580 KB
最終ジャッジ日時 2024-04-22 21:39:44
合計ジャッジ時間 8,239 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 TLE -
testcase_02 TLE -
testcase_03 TLE -
testcase_04 TLE -
testcase_05 AC 1,161 ms
11,392 KB
testcase_06 TLE -
testcase_07 AC 1,450 ms
51,400 KB
testcase_08 AC 1,399 ms
84,400 KB
testcase_09 AC 519 ms
47,816 KB
testcase_10 AC 1,287 ms
49,444 KB
testcase_11 TLE -
testcase_12 AC 1,874 ms
49,488 KB
testcase_13 AC 1,090 ms
29,360 KB
testcase_14 AC 1,990 ms
48,600 KB
testcase_15 AC 1,327 ms
83,948 KB
testcase_16 AC 1,993 ms
52,180 KB
testcase_17 TLE -
testcase_18 TLE -
testcase_19 AC 188 ms
19,972 KB
testcase_20 AC 1,934 ms
84,580 KB
testcase_21 AC 458 ms
47,480 KB
testcase_22 AC 893 ms
84,136 KB
testcase_23 TLE -
testcase_24 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m =map(int,input().split())
import collections
llist = collections.defaultdict(int)
rlist = collections.defaultdict(int)
for i in range(m):
    l,r =map(int,input().split())
    llist[l] += 1
    rlist[r] += 1

for i in reversed(range(1,n+1)):
    if i == n:
        temp = llist[i]
        print(temp)
    else:
        temp += llist[i]
        temp -= rlist[i+1]
        print(temp)
0