結果

問題 No.1042 愚直大学
ユーザー Akijin_007Akijin_007
提出日時 2023-09-22 14:53:33
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 203 bytes
コンパイル時間 676 ms
コンパイル使用メモリ 87,532 KB
実行使用メモリ 72,140 KB
最終ジャッジ日時 2023-09-22 14:54:14
合計ジャッジ時間 3,493 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,556 KB
testcase_01 AC 70 ms
71,636 KB
testcase_02 AC 70 ms
71,912 KB
testcase_03 AC 72 ms
71,636 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 71 ms
71,552 KB
testcase_07 AC 71 ms
71,880 KB
testcase_08 AC 71 ms
71,884 KB
testcase_09 AC 71 ms
71,940 KB
testcase_10 AC 71 ms
71,916 KB
testcase_11 AC 72 ms
71,768 KB
testcase_12 AC 70 ms
71,840 KB
testcase_13 AC 71 ms
72,056 KB
testcase_14 AC 71 ms
71,544 KB
testcase_15 AC 72 ms
71,872 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 72 ms
71,692 KB
testcase_19 WA -
testcase_20 AC 71 ms
71,840 KB
testcase_21 AC 72 ms
71,672 KB
testcase_22 AC 72 ms
71,688 KB
testcase_23 AC 73 ms
71,912 KB
testcase_24 AC 71 ms
71,772 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

P, Q = map(int, input().split())
from math import log2

max1 = 10.0 ** 10
min1 = 1.
while max1 - min1 > 0.000001:
	h = (max1 + min1) / 2
	if h <= P/h + Q*log2(h):
		min1 = h
	else:
		max1 = h
		
print(h)
0