結果

問題 No.1042 愚直大学
ユーザー 👑 timitimi
提出日時 2020-10-09 16:42:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 240 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 10,724 KB
実行使用メモリ 8,276 KB
最終ジャッジ日時 2023-09-27 12:43:11
合計ジャッジ時間 2,456 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
8,140 KB
testcase_01 AC 13 ms
8,100 KB
testcase_02 AC 13 ms
8,180 KB
testcase_03 AC 13 ms
8,236 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 13 ms
7,888 KB
testcase_07 AC 13 ms
8,212 KB
testcase_08 AC 13 ms
8,140 KB
testcase_09 AC 13 ms
8,192 KB
testcase_10 AC 14 ms
8,232 KB
testcase_11 AC 13 ms
8,092 KB
testcase_12 AC 14 ms
8,196 KB
testcase_13 AC 14 ms
8,220 KB
testcase_14 AC 12 ms
8,276 KB
testcase_15 AC 14 ms
8,224 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 15 ms
8,064 KB
testcase_19 WA -
testcase_20 AC 13 ms
8,064 KB
testcase_21 AC 13 ms
8,108 KB
testcase_22 AC 13 ms
8,108 KB
testcase_23 AC 13 ms
8,244 KB
testcase_24 AC 14 ms
8,224 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

P,Q=map(int, input().split())
import math
def f(x):
  t=x**2
  s=P+Q*x*math.log(x,2)
  if t<=s:
    return True
  else:
    return False
ok=1
ng=10**10
for i in range(50):
  mid=(ok+ng)/2
  if f(mid):
    ok=mid
  else:
    ng=mid
print(ok)
0