結果
問題 | No.2009 Drunkers' Contest |
ユーザー | tassei903 |
提出日時 | 2022-07-16 01:58:36 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 608 bytes |
コンパイル時間 | 987 ms |
コンパイル使用メモリ | 86,668 KB |
実行使用メモリ | 135,388 KB |
最終ジャッジ日時 | 2023-09-10 08:46:01 |
合計ジャッジ時間 | 11,926 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 70 ms
71,288 KB |
testcase_01 | AC | 70 ms
71,052 KB |
testcase_02 | AC | 70 ms
71,492 KB |
testcase_03 | AC | 70 ms
71,056 KB |
testcase_04 | AC | 71 ms
70,680 KB |
testcase_05 | AC | 70 ms
71,344 KB |
testcase_06 | AC | 69 ms
71,464 KB |
testcase_07 | AC | 70 ms
71,456 KB |
testcase_08 | WA | - |
testcase_09 | AC | 71 ms
71,336 KB |
testcase_10 | WA | - |
testcase_11 | AC | 69 ms
71,352 KB |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | AC | 74 ms
76,708 KB |
testcase_20 | WA | - |
testcase_21 | AC | 75 ms
76,544 KB |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | AC | 161 ms
132,760 KB |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | AC | 162 ms
132,628 KB |
testcase_30 | WA | - |
testcase_31 | WA | - |
testcase_32 | WA | - |
testcase_33 | WA | - |
testcase_34 | WA | - |
testcase_35 | AC | 155 ms
131,016 KB |
testcase_36 | WA | - |
testcase_37 | WA | - |
testcase_38 | WA | - |
testcase_39 | WA | - |
testcase_40 | WA | - |
testcase_41 | AC | 155 ms
130,864 KB |
testcase_42 | WA | - |
testcase_43 | WA | - |
testcase_44 | AC | 162 ms
135,152 KB |
testcase_45 | AC | 163 ms
135,388 KB |
testcase_46 | AC | 150 ms
130,076 KB |
testcase_47 | AC | 163 ms
107,408 KB |
testcase_48 | AC | 159 ms
107,312 KB |
testcase_49 | WA | - |
testcase_50 | WA | - |
testcase_51 | WA | - |
testcase_52 | WA | - |
testcase_53 | WA | - |
testcase_54 | WA | - |
testcase_55 | WA | - |
testcase_56 | WA | - |
testcase_57 | WA | - |
ソースコード
import sys input = lambda :sys.stdin.readline()[:-1] ni = lambda :int(input()) na = lambda :list(map(int,input().split())) yes = lambda :print("yes");Yes = lambda :print("Yes");YES = lambda : print("YES") no = lambda :print("no");No = lambda :print("No");NO = lambda : print("NO") ##################################################################### n = ni() a = na() b = na() ans = 0 i = 0 while i < n: r = i A = 0 B = 0 while r < n and a[r] * b[i] <= a[i] * b[r]: A += a[r] B += b[r] r += 1 x1 = max(A / B, 1)**0.5 ans += A/x1 + B * x1 i = r print(ans)