結果

問題 No.2154 あさかつの参加人数
ユーザー wanuiwanui
提出日時 2022-12-09 21:46:59
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 195 bytes
コンパイル時間 391 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 15,104 KB
最終ジャッジ日時 2024-04-22 21:38:40
合計ジャッジ時間 44,039 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 TLE -
testcase_02 TLE -
testcase_03 TLE -
testcase_04 TLE -
testcase_05 AC 1,260 ms
14,592 KB
testcase_06 AC 1,864 ms
15,104 KB
testcase_07 AC 1,142 ms
14,592 KB
testcase_08 AC 1,091 ms
14,772 KB
testcase_09 AC 355 ms
14,720 KB
testcase_10 AC 1,014 ms
14,720 KB
testcase_11 AC 1,946 ms
14,848 KB
testcase_12 AC 1,540 ms
14,720 KB
testcase_13 AC 981 ms
14,848 KB
testcase_14 AC 1,747 ms
14,868 KB
testcase_15 AC 1,021 ms
14,748 KB
testcase_16 AC 1,664 ms
14,848 KB
testcase_17 AC 1,907 ms
14,936 KB
testcase_18 TLE -
testcase_19 AC 163 ms
14,720 KB
testcase_20 AC 1,568 ms
14,828 KB
testcase_21 AC 300 ms
14,720 KB
testcase_22 AC 562 ms
14,720 KB
testcase_23 AC 1,872 ms
14,812 KB
testcase_24 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

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