結果

問題 No.2420 Simple Problem
ユーザー AIAI
提出日時 2023-08-12 15:27:50
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 180 bytes
コンパイル時間 365 ms
コンパイル使用メモリ 82,460 KB
実行使用メモリ 76,880 KB
最終ジャッジ日時 2024-04-30 09:24:41
合計ジャッジ時間 18,880 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
52,752 KB
testcase_01 AC 264 ms
76,780 KB
testcase_02 AC 51 ms
65,440 KB
testcase_03 AC 141 ms
76,484 KB
testcase_04 AC 455 ms
76,360 KB
testcase_05 AC 308 ms
76,460 KB
testcase_06 AC 544 ms
76,444 KB
testcase_07 AC 540 ms
76,612 KB
testcase_08 AC 551 ms
76,664 KB
testcase_09 AC 556 ms
76,396 KB
testcase_10 AC 530 ms
76,344 KB
testcase_11 AC 559 ms
76,640 KB
testcase_12 AC 537 ms
76,416 KB
testcase_13 AC 535 ms
76,476 KB
testcase_14 AC 545 ms
76,708 KB
testcase_15 AC 550 ms
76,472 KB
testcase_16 AC 547 ms
76,284 KB
testcase_17 AC 547 ms
76,660 KB
testcase_18 AC 561 ms
76,736 KB
testcase_19 AC 534 ms
76,748 KB
testcase_20 AC 542 ms
76,472 KB
testcase_21 AC 548 ms
76,256 KB
testcase_22 AC 567 ms
76,340 KB
testcase_23 AC 530 ms
76,404 KB
testcase_24 AC 547 ms
76,372 KB
testcase_25 AC 543 ms
76,880 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 34 ms
52,960 KB
testcase_33 AC 257 ms
76,396 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

N = int(input())
for i in range(N):
    A, B = map(int, input().split())
    a = math.sqrt(A)
    b = math.sqrt(B)
    c = a + b
    c = math.floor(c)
    print(c + 1)
0