結果
| 問題 | No.2420 Simple Problem |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-10-06 23:59:43 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 255 bytes |
| 記録 | |
| コンパイル時間 | 457 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 23,196 KB |
| 最終ジャッジ日時 | 2026-04-03 17:47:07 |
| 合計ジャッジ時間 | 9,050 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 4 TLE * 2 -- * 27 |
ソースコード
def f(X): return 4*A*B < (X*X - A - B)**2 and (X*X - A - B) >= 0 for _ in range(int(input())): A, B = map(int, input().split()) ok = 100000 ng = 0 while (ok - ng) > 1: mid = (ok + ng) // 2 if f(mid): ok = mid else: ng = mid print(ok)