結果

問題 No.2420 Simple Problem
ユーザー AIAI
提出日時 2023-08-12 14:57:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 181 bytes
コンパイル時間 300 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-04-30 07:38:56
合計ジャッジ時間 50,938 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,624 KB
testcase_01 AC 755 ms
10,880 KB
testcase_02 AC 36 ms
10,752 KB
testcase_03 AC 291 ms
10,752 KB
testcase_04 AC 1,400 ms
10,880 KB
testcase_05 AC 900 ms
10,752 KB
testcase_06 AC 1,758 ms
10,752 KB
testcase_07 AC 1,771 ms
10,880 KB
testcase_08 AC 1,784 ms
10,624 KB
testcase_09 AC 1,741 ms
10,752 KB
testcase_10 AC 1,802 ms
10,752 KB
testcase_11 AC 1,752 ms
10,752 KB
testcase_12 AC 1,797 ms
10,752 KB
testcase_13 AC 1,792 ms
10,752 KB
testcase_14 AC 1,794 ms
10,880 KB
testcase_15 AC 1,766 ms
10,752 KB
testcase_16 AC 1,759 ms
10,752 KB
testcase_17 AC 1,756 ms
10,752 KB
testcase_18 AC 1,744 ms
10,752 KB
testcase_19 AC 1,765 ms
10,752 KB
testcase_20 AC 1,753 ms
10,752 KB
testcase_21 AC 1,756 ms
10,752 KB
testcase_22 AC 1,758 ms
10,752 KB
testcase_23 AC 1,765 ms
10,752 KB
testcase_24 AC 1,776 ms
10,752 KB
testcase_25 AC 1,753 ms
10,752 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 29 ms
10,752 KB
testcase_33 AC 722 ms
10,752 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