結果
| 問題 |
No.1042 愚直大学
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-05-01 22:08:45 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 200 bytes |
| コンパイル時間 | 100 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 21,248 KB |
| 最終ジャッジ日時 | 2024-12-25 11:20:32 |
| 合計ジャッジ時間 | 25,688 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 TLE * 8 |
ソースコード
import math
p, q = map(int,input().split())
l = 1
r = int(1e11)
while r-l > 1/int(1e7):
m = (l+r) / 2
f = p + q*m*math.log2(m)
if m**2 >= f:
r = m
else:
l = m
print(l)