結果

問題 No.2154 あさかつの参加人数
ユーザー 21kazu1321kazu13
提出日時 2023-07-07 21:12:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 516 ms / 2,000 ms
コード長 1,117 bytes
コンパイル時間 707 ms
コンパイル使用メモリ 86,996 KB
実行使用メモリ 135,600 KB
最終ジャッジ日時 2023-09-28 22:04:28
合計ジャッジ時間 19,917 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 516 ms
131,872 KB
testcase_01 AC 456 ms
131,880 KB
testcase_02 AC 453 ms
132,016 KB
testcase_03 AC 457 ms
131,924 KB
testcase_04 AC 475 ms
131,668 KB
testcase_05 AC 244 ms
80,952 KB
testcase_06 AC 372 ms
107,060 KB
testcase_07 AC 323 ms
102,832 KB
testcase_08 AC 313 ms
114,832 KB
testcase_09 AC 228 ms
109,380 KB
testcase_10 AC 301 ms
102,564 KB
testcase_11 AC 417 ms
135,600 KB
testcase_12 AC 365 ms
115,344 KB
testcase_13 AC 270 ms
93,640 KB
testcase_14 AC 372 ms
114,428 KB
testcase_15 AC 309 ms
122,760 KB
testcase_16 AC 368 ms
113,080 KB
testcase_17 AC 390 ms
114,508 KB
testcase_18 AC 418 ms
123,672 KB
testcase_19 AC 187 ms
86,148 KB
testcase_20 AC 370 ms
127,868 KB
testcase_21 AC 218 ms
106,584 KB
testcase_22 AC 265 ms
132,368 KB
testcase_23 AC 442 ms
124,832 KB
testcase_24 AC 426 ms
127,988 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
import sys
from bisect import bisect_left, bisect_right, insort_left, insort_right  # type: ignore
from collections import Counter, defaultdict, deque  # type: ignore
from math import gcd, sqrt, ceil  # type: ignore
from heapq import heapify, heappop, heappush, heappushpop, heapreplace, merge  # type: ignore
from itertools import accumulate, combinations, permutations, product  # type: ignore
from string import ascii_lowercase, ascii_uppercase # type: ignore

def LI(): return list(map(int, sys.stdin.buffer.readline().split()))
def I(): return int(sys.stdin.buffer.readline())
def LS(): return sys.stdin.buffer.readline().rstrip().decode("utf-8").split()
def S(): return sys.stdin.buffer.readline().rstrip().decode("utf-8")
def IR(n): return [I() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def SR(n): return [S() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
def SRL(n): return [list(S()) for _ in range(n)]

N,M = LI()
days = [0]*(N+1)
for _ in range(M):
    l,r = LI()
    days[N-l]+=1
    days[N-r+1]-=1
print(*list(accumulate(days))[:-1],sep='\n')
0