結果

問題 No.2420 Simple Problem
ユーザー maru65536
提出日時 2023-08-12 14:17:13
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 146 bytes
コンパイル時間 230 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-11-19 18:26:44
合計ジャッジ時間 46,166 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 27 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import sqrt,ceil
n=int(input())
eps=1e-10
for _ in range(n):
    a,b=map(int,input().split())
    print(ceil(sqrt(a+b+2*sqrt(a*b))+eps))
0