結果
問題 |
No.2559 眩しい数直線
|
ユーザー |
![]() |
提出日時 | 2023-11-03 17:15:56 |
言語 | PyPy3 (7.3.15) |
結果 |
MLE
|
実行時間 | - |
コード長 | 377 bytes |
コンパイル時間 | 268 ms |
コンパイル使用メモリ | 82,376 KB |
実行使用メモリ | 765,696 KB |
最終ジャッジ日時 | 2024-09-25 18:38:43 |
合計ジャッジ時間 | 4,385 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | MLE * 1 -- * 19 |
ソースコード
from collections import deque N,X = map(int,input().split()) ans = [0]*X for _ in range(N): # A: 座標, B: 人数 q = deque([list(map(int,input().split()))]) while q: A,B = q.popleft() ans[A-1] = max(ans[A-1], B) if 1 < A and 1 < B: q.append([A-1, B-1]) if A < X and 1 < B: q.append([A+1, B-1]) print(*ans)