結果

問題 No.9 モンスターのレベル上げ
ユーザー pluto77pluto77
提出日時 2016-09-22 16:52:12
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 279 bytes
コンパイル時間 473 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-28 18:26:42
合計ジャッジ時間 4,932 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,812 KB
testcase_01 AC 12 ms
6,940 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 12 ms
6,940 KB
testcase_11 AC 392 ms
6,940 KB
testcase_12 AC 393 ms
6,940 KB
testcase_13 AC 279 ms
6,944 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 235 ms
6,940 KB
testcase_18 AC 202 ms
6,944 KB
testcase_19 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki_9
import heapq

n=int(raw_input())
a=map(int,raw_input().split())
b=map(int,raw_input().split())
heapq.heapify(a)
a=[[i,0] for i in a]

aa=a[:]
for i in xrange(n):
 aa[0][0]+=b[i]/2
 aa[0][1]+=1
 heapq.heapify(aa)
res=0
for i in xrange(n):
 res=max(aa[i][1],res)
print res
0