結果

問題 No.2154 あさかつの参加人数
ユーザー flygonflygon
提出日時 2022-12-09 21:28:01
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 451 ms / 2,000 ms
コード長 501 bytes
コンパイル時間 435 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 103,936 KB
最終ジャッジ日時 2024-04-22 20:27:38
合計ジャッジ時間 12,882 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 440 ms
103,296 KB
testcase_01 AC 444 ms
103,552 KB
testcase_02 AC 447 ms
103,424 KB
testcase_03 AC 433 ms
103,040 KB
testcase_04 AC 451 ms
103,936 KB
testcase_05 AC 151 ms
76,672 KB
testcase_06 AC 300 ms
87,552 KB
testcase_07 AC 281 ms
91,520 KB
testcase_08 AC 286 ms
94,336 KB
testcase_09 AC 189 ms
87,424 KB
testcase_10 AC 262 ms
90,496 KB
testcase_11 AC 397 ms
98,688 KB
testcase_12 AC 318 ms
91,008 KB
testcase_13 AC 192 ms
82,432 KB
testcase_14 AC 307 ms
90,496 KB
testcase_15 AC 274 ms
95,232 KB
testcase_16 AC 330 ms
93,440 KB
testcase_17 AC 330 ms
91,008 KB
testcase_18 AC 370 ms
94,848 KB
testcase_19 AC 106 ms
78,976 KB
testcase_20 AC 331 ms
95,360 KB
testcase_21 AC 193 ms
85,888 KB
testcase_22 AC 257 ms
95,232 KB
testcase_23 AC 349 ms
95,232 KB
testcase_24 AC 385 ms
98,816 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
sys.setrecursionlimit(5*10**5)
input = sys.stdin.readline
import pypyjit
pypyjit.set_param('max_unroll_recursion=-1')
from collections import defaultdict, deque, Counter
from heapq import heappop, heappush
from bisect import bisect_left, bisect_right
from math import gcd

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

for i in range(1,n+10):
  ans[i] += ans[i-1]
ans = ans[:n]
print(*ans, sep = "\n")
0