結果

問題 No.2420 Simple Problem
コンテスト
ユーザー Suzux
提出日時 2023-08-12 14:59:16
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 194 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 147 ms
コンパイル使用メモリ 85,632 KB
実行使用メモリ 82,304 KB
最終ジャッジ日時 2026-05-14 03:01:30
合計ジャッジ時間 7,854 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 27 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

from sys import stdin

n = int(input())

for _ in range(n):
    a, b = list(map(int, stdin.readline().split()))
    temp = a + b + int(2*(a*b)**0.5)
    temp = int(temp ** 0.5)
    print(temp+1)
0