結果
| 問題 | No.2453 Seat Allocation |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2023-08-20 07:42:12 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 242 bytes |
| 記録 | |
| コンパイル時間 | 285 ms |
| コンパイル使用メモリ | 82,420 KB |
| 実行使用メモリ | 105,404 KB |
| 最終ジャッジ日時 | 2024-06-11 17:51:34 |
| 合計ジャッジ時間 | 6,829 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 WA * 1 |
ソースコード
import heapq J,R=lambda:map(int,input().split()),range N,M=J() A=list(J()) B=list(J())+[1] C=[[-A[i]/B[0],i,0]for i in R(N)] heapq.heapify(C) for j in R(M): c=heapq.heappop(C) print(1+c[1]),heapq.heappush(C,[-A[c[1]]/B[c[2]+1],c[1],c[2]+1])