結果

問題 No.2420 Simple Problem
ユーザー shin3110shin3110
提出日時 2023-08-12 15:05:35
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 201 bytes
コンパイル時間 284 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-04-30 08:02:05
合計ジャッジ時間 53,245 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,880 KB
testcase_01 AC 775 ms
10,880 KB
testcase_02 AC 38 ms
10,752 KB
testcase_03 AC 297 ms
10,752 KB
testcase_04 AC 1,468 ms
10,752 KB
testcase_05 AC 944 ms
10,752 KB
testcase_06 AC 1,839 ms
10,880 KB
testcase_07 AC 1,880 ms
10,752 KB
testcase_08 AC 1,834 ms
10,880 KB
testcase_09 AC 1,836 ms
10,880 KB
testcase_10 AC 1,859 ms
10,752 KB
testcase_11 AC 1,850 ms
10,752 KB
testcase_12 AC 1,857 ms
10,752 KB
testcase_13 AC 1,822 ms
10,752 KB
testcase_14 AC 1,843 ms
10,752 KB
testcase_15 AC 1,831 ms
10,880 KB
testcase_16 AC 1,808 ms
10,752 KB
testcase_17 AC 1,851 ms
10,880 KB
testcase_18 AC 1,842 ms
10,752 KB
testcase_19 AC 1,843 ms
10,880 KB
testcase_20 AC 1,841 ms
10,880 KB
testcase_21 AC 1,831 ms
10,752 KB
testcase_22 AC 1,835 ms
10,880 KB
testcase_23 AC 1,847 ms
10,880 KB
testcase_24 AC 1,844 ms
10,752 KB
testcase_25 AC 1,845 ms
10,880 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 31 ms
10,880 KB
testcase_33 AC 754 ms
10,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
n = int(input())
for i in range(n):
	A, B = map(int, input().split())
	sum_sqrt = math.sqrt(A) + math.sqrt(B)
	X = math.ceil(sum_sqrt)
	
	if sum_sqrt == int(sum_sqrt):
	    X += 1
	print(X)
0