結果
問題 | No.2009 Drunkers' Contest |
ユーザー | 👑 Kazun |
提出日時 | 2022-07-15 23:52:49 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 340 bytes |
コンパイル時間 | 1,667 ms |
コンパイル使用メモリ | 86,660 KB |
実行使用メモリ | 143,376 KB |
最終ジャッジ日時 | 2023-09-10 06:05:35 |
合計ジャッジ時間 | 13,209 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 73 ms
71,316 KB |
testcase_01 | AC | 74 ms
71,388 KB |
testcase_02 | AC | 71 ms
71,420 KB |
testcase_03 | AC | 71 ms
71,688 KB |
testcase_04 | AC | 70 ms
71,472 KB |
testcase_05 | AC | 70 ms
71,448 KB |
testcase_06 | AC | 71 ms
71,492 KB |
testcase_07 | AC | 71 ms
71,536 KB |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | WA | - |
testcase_30 | WA | - |
testcase_31 | WA | - |
testcase_32 | WA | - |
testcase_33 | WA | - |
testcase_34 | WA | - |
testcase_35 | WA | - |
testcase_36 | WA | - |
testcase_37 | WA | - |
testcase_38 | WA | - |
testcase_39 | WA | - |
testcase_40 | WA | - |
testcase_41 | WA | - |
testcase_42 | WA | - |
testcase_43 | WA | - |
testcase_44 | AC | 177 ms
135,464 KB |
testcase_45 | AC | 168 ms
133,608 KB |
testcase_46 | AC | 181 ms
143,376 KB |
testcase_47 | AC | 183 ms
136,528 KB |
testcase_48 | AC | 183 ms
136,896 KB |
testcase_49 | AC | 183 ms
133,652 KB |
testcase_50 | WA | - |
testcase_51 | AC | 187 ms
133,624 KB |
testcase_52 | AC | 182 ms
129,704 KB |
testcase_53 | AC | 178 ms
142,000 KB |
testcase_54 | AC | 179 ms
138,500 KB |
testcase_55 | AC | 165 ms
128,776 KB |
testcase_56 | AC | 161 ms
128,720 KB |
testcase_57 | AC | 181 ms
141,676 KB |
ソースコード
from math import sqrt N=int(input()) A=list(map(int,input().split())) B=list(map(int,input().split())) S=[] for i in range(N): if bool(S) and S[-1][0]/S[-1][1]>A[i]/B[i]: S[-1][0]+=A[i] S[-1][1]+=B[i] else: S.append([A[i],B[i]]) T=0 for a,b in S: x=max(sqrt(a/b)-1,0) T+=a/(1+x)+b*(1+x) print(T)