結果
問題 |
No.9 モンスターのレベル上げ
|
ユーザー |
![]() |
提出日時 | 2019-03-18 19:29:41 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 361 bytes |
コンパイル時間 | 197 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 50,632 KB |
最終ジャッジ日時 | 2024-07-18 16:44:39 |
合計ジャッジ時間 | 8,596 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 TLE * 1 -- * 17 |
ソースコード
import numpy as np N = int(input()) A = list(map(int, input().split())) B = list(map(int, input().split())) C = [0] * len(A) for b in B: D = [i for i, x in enumerate(A) \ if x == min(A)] C_ = [C[x] for x in D] T = [x for x in D if C[x] == min(C_) and A[x] == min(A)] idx = T[0] A[idx] += (b//2) C[idx] += 1 print(max(C))