結果

問題 No.2420 Simple Problem
ユーザー SuzuxSuzux
提出日時 2023-08-12 14:59:16
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 194 bytes
コンパイル時間 253 ms
コンパイル使用メモリ 82,356 KB
実行使用メモリ 77,728 KB
最終ジャッジ日時 2024-04-30 07:43:11
合計ジャッジ時間 9,970 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
52,144 KB
testcase_01 AC 121 ms
76,588 KB
testcase_02 AC 50 ms
63,444 KB
testcase_03 AC 90 ms
76,180 KB
testcase_04 AC 185 ms
77,448 KB
testcase_05 AC 135 ms
76,680 KB
testcase_06 AC 204 ms
77,504 KB
testcase_07 AC 202 ms
77,484 KB
testcase_08 AC 202 ms
77,684 KB
testcase_09 AC 205 ms
77,304 KB
testcase_10 AC 202 ms
77,496 KB
testcase_11 AC 198 ms
77,272 KB
testcase_12 AC 205 ms
77,220 KB
testcase_13 AC 207 ms
77,524 KB
testcase_14 AC 204 ms
77,252 KB
testcase_15 AC 203 ms
77,488 KB
testcase_16 AC 206 ms
77,280 KB
testcase_17 AC 206 ms
77,304 KB
testcase_18 AC 203 ms
77,268 KB
testcase_19 AC 205 ms
77,348 KB
testcase_20 AC 206 ms
77,620 KB
testcase_21 AC 198 ms
77,544 KB
testcase_22 AC 205 ms
77,672 KB
testcase_23 AC 205 ms
77,212 KB
testcase_24 AC 198 ms
77,224 KB
testcase_25 AC 204 ms
77,728 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 36 ms
52,936 KB
testcase_33 AC 118 ms
76,620 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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