結果

問題 No.210 探し物はどこですか?
ユーザー titiatitia
提出日時 2022-06-28 02:52:23
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 306 bytes
コンパイル時間 257 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-04-30 16:14:53
合計ジャッジ時間 7,881 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 134 ms
10,752 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 128 ms
10,752 KB
testcase_04 AC 116 ms
10,752 KB
testcase_05 AC 120 ms
10,752 KB
testcase_06 AC 125 ms
10,752 KB
testcase_07 AC 118 ms
10,752 KB
testcase_08 AC 115 ms
10,752 KB
testcase_09 AC 111 ms
10,752 KB
testcase_10 AC 117 ms
10,880 KB
testcase_11 AC 113 ms
10,880 KB
testcase_12 AC 116 ms
10,880 KB
testcase_13 AC 138 ms
10,752 KB
testcase_14 AC 136 ms
10,880 KB
testcase_15 AC 140 ms
10,880 KB
testcase_16 AC 137 ms
10,752 KB
testcase_17 AC 135 ms
10,752 KB
testcase_18 AC 133 ms
10,880 KB
testcase_19 AC 133 ms
10,752 KB
testcase_20 AC 134 ms
10,752 KB
testcase_21 AC 130 ms
10,752 KB
testcase_22 AC 134 ms
10,752 KB
testcase_23 AC 158 ms
10,752 KB
testcase_24 AC 155 ms
10,752 KB
testcase_25 AC 149 ms
10,880 KB
testcase_26 AC 156 ms
10,752 KB
testcase_27 AC 153 ms
10,880 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 161 ms
10,880 KB
testcase_34 AC 163 ms
10,880 KB
testcase_35 AC 164 ms
11,008 KB
testcase_36 AC 164 ms
10,880 KB
testcase_37 AC 163 ms
10,880 KB
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 WA -
testcase_42 WA -
testcase_43 AC 91 ms
10,752 KB
testcase_44 AC 111 ms
10,752 KB
testcase_45 AC 130 ms
10,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from heapq import heappop,heappush

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

X=[]
for i in range(n):
    X.append((-P[i]*Q[i]/100000,1-Q[i]/100))

X.sort()

ANS=0
for tests in range(1,99999):
    x,y=heappop(X)

    ANS+=-x*tests
    heappush(X,(x*y,y))

print(ANS)
0