結果
問題 |
No.9 モンスターのレベル上げ
|
ユーザー |
|
提出日時 | 2015-02-16 23:37:52 |
言語 | Python2 (2.7.18) |
結果 |
TLE
|
実行時間 | - |
コード長 | 379 bytes |
コンパイル時間 | 148 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 13,880 KB |
最終ジャッジ日時 | 2024-06-23 20:49:04 |
合計ジャッジ時間 | 6,808 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 TLE * 1 -- * 17 |
ソースコード
import copy N = int(raw_input()) _A = [[i,0] for i in sorted(map(int,raw_input().split()))] B = map(int,raw_input().split()) ans = 1500 for sp in xrange(N): A = copy.deepcopy(_A) for i in xrange(sp, N+sp): i %= N A[0][0] += B[i]/2 A[0][1] += 1 A = sorted(sorted(A, key = lambda x:x[1])) ans = min(ans, max(a[1] for a in A)) print ans