結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,788 KB
testcase_01 AC 71 ms
71,776 KB
testcase_02 AC 71 ms
71,928 KB
testcase_03 AC 71 ms
72,040 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 70 ms
71,700 KB
testcase_07 AC 71 ms
71,644 KB
testcase_08 AC 71 ms
71,956 KB
testcase_09 AC 72 ms
71,964 KB
testcase_10 AC 78 ms
71,828 KB
testcase_11 AC 72 ms
71,704 KB
testcase_12 AC 71 ms
71,840 KB
testcase_13 AC 72 ms
71,884 KB
testcase_14 AC 71 ms
71,932 KB
testcase_15 AC 73 ms
72,040 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 71 ms
72,040 KB
testcase_19 WA -
testcase_20 AC 73 ms
71,772 KB
testcase_21 AC 72 ms
71,964 KB
testcase_22 AC 72 ms
71,708 KB
testcase_23 AC 80 ms
71,848 KB
testcase_24 AC 70 ms
71,924 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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