結果
| 問題 | 
                            No.1042 愚直大学
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2021-01-10 23:51:15 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                TLE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 184 bytes | 
| コンパイル時間 | 79 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 21,760 KB | 
| 最終ジャッジ日時 | 2024-11-21 08:37:44 | 
| 合計ジャッジ時間 | 16,755 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 18 TLE * 5 | 
ソースコード
import math def is_ok(N): return N**2<=P+Q*N*math.log2(N) P,Q=map(int,input().split()) ok=1 ng=10**18 while ng-ok>10**(-6): m=(ok+ng)/2 if is_ok(m): ok=m else: ng=m print(ok)