結果

問題 No.2420 Simple Problem
コンテスト
ユーザー Suzux
提出日時 2023-08-12 14:59:16
言語 PyPy3
(8.0.0 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 194 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 62 ms
コンパイル使用メモリ 80,896 KB
実行使用メモリ 85,084 KB
最終ジャッジ日時 2026-09-26 20:18:01
合計ジャッジ時間 12,124 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge4_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