結果

問題 No.2420 Simple Problem
ユーザー sepa38sepa38
提出日時 2023-07-15 14:22:38
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 147 bytes
コンパイル時間 4,840 ms
コンパイル使用メモリ 81,624 KB
実行使用メモリ 76,208 KB
最終ジャッジ日時 2023-10-16 23:31:43
合計ジャッジ時間 26,432 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
53,628 KB
testcase_01 AC 275 ms
76,200 KB
testcase_02 AC 58 ms
66,040 KB
testcase_03 AC 143 ms
76,200 KB
testcase_04 AC 463 ms
76,204 KB
testcase_05 AC 321 ms
76,200 KB
testcase_06 AC 553 ms
76,204 KB
testcase_07 AC 552 ms
76,208 KB
testcase_08 AC 585 ms
76,204 KB
testcase_09 AC 556 ms
76,204 KB
testcase_10 AC 564 ms
76,204 KB
testcase_11 AC 558 ms
76,208 KB
testcase_12 AC 572 ms
76,204 KB
testcase_13 AC 553 ms
76,204 KB
testcase_14 AC 547 ms
76,200 KB
testcase_15 AC 560 ms
76,204 KB
testcase_16 AC 556 ms
76,208 KB
testcase_17 AC 548 ms
76,208 KB
testcase_18 AC 552 ms
76,204 KB
testcase_19 AC 550 ms
76,200 KB
testcase_20 AC 564 ms
76,204 KB
testcase_21 AC 568 ms
76,208 KB
testcase_22 AC 561 ms
76,208 KB
testcase_23 AC 555 ms
76,204 KB
testcase_24 AC 566 ms
76,204 KB
testcase_25 AC 558 ms
76,208 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 35 ms
53,632 KB
testcase_33 AC 271 ms
76,204 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
for _ in range(int(input())):
  a, b = map(int, input().split())
  x = a + b + 2 * math.sqrt(a*b)
  print(math.floor(math.sqrt(x)) + 1)
0