結果

問題 No.2420 Simple Problem
ユーザー hiro1729hiro1729
提出日時 2024-02-23 09:32:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 807 ms / 2,000 ms
コード長 130 bytes
コンパイル時間 294 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 76,760 KB
最終ジャッジ日時 2024-02-23 09:32:42
合計ジャッジ時間 26,077 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
53,460 KB
testcase_01 AC 415 ms
76,628 KB
testcase_02 AC 75 ms
70,600 KB
testcase_03 AC 201 ms
76,372 KB
testcase_04 AC 635 ms
76,632 KB
testcase_05 AC 451 ms
76,628 KB
testcase_06 AC 770 ms
76,756 KB
testcase_07 AC 805 ms
76,760 KB
testcase_08 AC 797 ms
76,756 KB
testcase_09 AC 767 ms
76,760 KB
testcase_10 AC 793 ms
76,504 KB
testcase_11 AC 799 ms
76,756 KB
testcase_12 AC 769 ms
76,756 KB
testcase_13 AC 798 ms
76,760 KB
testcase_14 AC 806 ms
76,504 KB
testcase_15 AC 785 ms
76,756 KB
testcase_16 AC 802 ms
76,756 KB
testcase_17 AC 790 ms
76,756 KB
testcase_18 AC 767 ms
76,760 KB
testcase_19 AC 807 ms
76,756 KB
testcase_20 AC 791 ms
76,756 KB
testcase_21 AC 763 ms
76,760 KB
testcase_22 AC 802 ms
76,500 KB
testcase_23 AC 801 ms
76,756 KB
testcase_24 AC 803 ms
76,756 KB
testcase_25 AC 799 ms
76,760 KB
testcase_26 AC 40 ms
53,460 KB
testcase_27 AC 661 ms
76,632 KB
testcase_28 AC 635 ms
76,632 KB
testcase_29 AC 676 ms
76,504 KB
testcase_30 AC 635 ms
76,632 KB
testcase_31 AC 635 ms
76,504 KB
testcase_32 AC 40 ms
53,460 KB
testcase_33 AC 363 ms
76,632 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import isqrt
for _ in range(int(input())):
	A, B = map(int, input().split())
	print(isqrt(A + B + isqrt(4 * A * B)) + 1)
0