結果
| 問題 |
No.1042 愚直大学
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-02-08 11:09:29 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 245 bytes |
| コンパイル時間 | 2,297 ms |
| コンパイル使用メモリ | 81,784 KB |
| 実行使用メモリ | 129,216 KB |
| 最終ジャッジ日時 | 2025-02-08 11:09:40 |
| 合計ジャッジ時間 | 10,573 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 21 TLE * 2 |
ソースコード
from math import log2
def is_ok(n):
return n * n <= q * log2(n) * n + p
p, q = map(int, input().split())
ok = 1
ng = 1e12
while ng - ok > 0.000003:
m = (ok + ng) / 2
if is_ok(m):
ok = m
else:
ng = m
print(ok)