結果
| 問題 | No.2154 あさかつの参加人数 |
| コンテスト | |
| ユーザー |
WoqpDF
|
| 提出日時 | 2022-12-09 21:47:58 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 729 ms / 2,000 ms |
| + 916µs | |
| コード長 | 386 bytes |
| 記録 | |
| コンパイル時間 | 73 ms |
| コンパイル使用メモリ | 81,152 KB |
| 実行使用メモリ | 219,984 KB |
| 最終ジャッジ日時 | 2026-09-17 07:54:40 |
| 合計ジャッジ時間 | 19,803 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
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)
WoqpDF