結果
| 問題 |
No.2420 Simple Problem
|
| コンテスト | |
| ユーザー |
LaFolia13
|
| 提出日時 | 2023-07-29 17:19:11 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 249 bytes |
| コンパイル時間 | 296 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 28,672 KB |
| 最終ジャッジ日時 | 2024-10-08 04:56:53 |
| 合計ジャッジ時間 | 5,543 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | TLE * 1 -- * 32 |
ソースコード
N = int(input())
for i in range(N):
A, B = map(int, input().split())
ng = 0
ok = 5000000000000000000
while ok - ng > 1:
mid = (ok + ng) // 2
if 4 * A * B < (mid * mid - A - B) ** 2:
ok = mid
else:
ng = mid
print(ok)
LaFolia13