結果
問題 |
No.2154 あさかつの参加人数
|
ユーザー |
|
提出日時 | 2022-12-09 21:28:01 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 406 ms / 2,000 ms |
コード長 | 501 bytes |
コンパイル時間 | 575 ms |
コンパイル使用メモリ | 82,592 KB |
実行使用メモリ | 103,792 KB |
最終ジャッジ日時 | 2024-10-14 20:08:25 |
合計ジャッジ時間 | 11,989 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
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")