結果
| 問題 | No.2420 Simple Problem |
| コンテスト | |
| ユーザー |
nikoro256
|
| 提出日時 | 2023-08-12 14:15:25 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 268 bytes |
| 記録 | |
| コンパイル時間 | 401 ms |
| コンパイル使用メモリ | 85,376 KB |
| 実行使用メモリ | 81,280 KB |
| 最終ジャッジ日時 | 2026-05-13 23:55:20 |
| 合計ジャッジ時間 | 13,260 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 33 |
ソースコード
import math
N=int(input())
for _ in range(N):
A,B=map(int,input().split())
left,right=0,3*10**3
while right-left>1:
mid=(right+left)//2
if 4*A*B<(mid**2-A-B)**2:
right=mid
else:
left=mid
print(int(right))
nikoro256