結果
問題 | No.2009 Drunkers' Contest |
ユーザー | tassei903 |
提出日時 | 2022-07-16 02:03:36 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 669 bytes |
コンパイル時間 | 847 ms |
コンパイル使用メモリ | 87,240 KB |
実行使用メモリ | 135,764 KB |
最終ジャッジ日時 | 2023-09-10 08:49:57 |
合計ジャッジ時間 | 11,613 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 70 ms
71,656 KB |
testcase_01 | AC | 70 ms
71,600 KB |
testcase_02 | AC | 70 ms
71,852 KB |
testcase_03 | AC | 69 ms
71,360 KB |
testcase_04 | AC | 69 ms
71,356 KB |
testcase_05 | AC | 69 ms
71,740 KB |
testcase_06 | AC | 69 ms
71,932 KB |
testcase_07 | AC | 69 ms
71,792 KB |
testcase_08 | WA | - |
testcase_09 | AC | 70 ms
71,848 KB |
testcase_10 | WA | - |
testcase_11 | AC | 69 ms
71,680 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,892 KB |
testcase_20 | WA | - |
testcase_21 | AC | 75 ms
76,916 KB |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | AC | 160 ms
133,072 KB |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | AC | 160 ms
133,108 KB |
testcase_30 | WA | - |
testcase_31 | WA | - |
testcase_32 | WA | - |
testcase_33 | WA | - |
testcase_34 | WA | - |
testcase_35 | AC | 154 ms
131,652 KB |
testcase_36 | WA | - |
testcase_37 | WA | - |
testcase_38 | WA | - |
testcase_39 | WA | - |
testcase_40 | WA | - |
testcase_41 | AC | 158 ms
131,328 KB |
testcase_42 | WA | - |
testcase_43 | WA | - |
testcase_44 | AC | 162 ms
135,372 KB |
testcase_45 | AC | 167 ms
135,764 KB |
testcase_46 | AC | 150 ms
130,336 KB |
testcase_47 | AC | 158 ms
107,832 KB |
testcase_48 | AC | 157 ms
107,656 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 True: A += a[r] B += b[r] r += 1 if r == n: break if a[r] * b[i] > a[i] * b[r]: break x1 = max(A / B, 1)**0.5 ans += A/x1 + B * x1 i = r print(ans)