結果

問題 No.210 探し物はどこですか?
ユーザー rlangevinrlangevin
提出日時 2023-10-29 17:06:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 570 ms / 2,000 ms
コード長 315 bytes
コンパイル時間 388 ms
コンパイル使用メモリ 81,848 KB
実行使用メモリ 78,176 KB
最終ジャッジ日時 2023-10-29 17:07:11
合計ジャッジ時間 22,954 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 272 ms
76,188 KB
testcase_01 AC 289 ms
76,380 KB
testcase_02 AC 322 ms
77,024 KB
testcase_03 AC 395 ms
76,216 KB
testcase_04 AC 410 ms
76,188 KB
testcase_05 AC 373 ms
76,128 KB
testcase_06 AC 383 ms
76,388 KB
testcase_07 AC 405 ms
76,188 KB
testcase_08 AC 353 ms
76,508 KB
testcase_09 AC 362 ms
76,440 KB
testcase_10 AC 367 ms
76,504 KB
testcase_11 AC 399 ms
76,408 KB
testcase_12 AC 392 ms
76,472 KB
testcase_13 AC 414 ms
76,608 KB
testcase_14 AC 529 ms
76,564 KB
testcase_15 AC 516 ms
77,028 KB
testcase_16 AC 481 ms
76,644 KB
testcase_17 AC 491 ms
76,572 KB
testcase_18 AC 362 ms
76,608 KB
testcase_19 AC 393 ms
76,524 KB
testcase_20 AC 363 ms
76,788 KB
testcase_21 AC 363 ms
76,500 KB
testcase_22 AC 378 ms
76,524 KB
testcase_23 AC 506 ms
77,220 KB
testcase_24 AC 514 ms
77,384 KB
testcase_25 AC 525 ms
77,372 KB
testcase_26 AC 497 ms
77,440 KB
testcase_27 AC 517 ms
77,384 KB
testcase_28 AC 427 ms
76,804 KB
testcase_29 AC 434 ms
76,796 KB
testcase_30 AC 458 ms
76,936 KB
testcase_31 AC 450 ms
76,784 KB
testcase_32 AC 425 ms
76,788 KB
testcase_33 AC 570 ms
78,176 KB
testcase_34 AC 528 ms
77,856 KB
testcase_35 AC 557 ms
77,912 KB
testcase_36 AC 549 ms
78,100 KB
testcase_37 AC 524 ms
77,916 KB
testcase_38 AC 495 ms
77,700 KB
testcase_39 AC 472 ms
77,588 KB
testcase_40 AC 480 ms
77,480 KB
testcase_41 AC 488 ms
77,588 KB
testcase_42 AC 464 ms
77,612 KB
testcase_43 AC 60 ms
75,636 KB
testcase_44 AC 152 ms
75,836 KB
testcase_45 AC 433 ms
76,312 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from heapq import *

N = int(input())
P = list(map(int, input().split()))
Q = list(map(int, input().split()))

H = []
ans = 0
for i in range(N):
    heappush(H, (-P[i] * Q[i]/1e5, 1 - Q[i]/1e2))
    
for i in range(1, 10**6):
    v, q = heappop(H)
    ans -= v * i
    v *= q
    heappush(H, (v, q))
    
print(ans)
0