結果

問題 No.2420 Simple Problem
ユーザー 👑 H20H20
提出日時 2023-08-12 14:05:18
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,459 ms / 2,000 ms
コード長 175 bytes
コンパイル時間 648 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 60,032 KB
最終ジャッジ日時 2024-05-13 11:23:32
合計ジャッジ時間 44,457 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 24 ms
10,880 KB
testcase_01 AC 598 ms
30,976 KB
testcase_02 AC 31 ms
11,264 KB
testcase_03 AC 233 ms
18,304 KB
testcase_04 AC 1,159 ms
50,048 KB
testcase_05 AC 742 ms
35,840 KB
testcase_06 AC 1,457 ms
59,904 KB
testcase_07 AC 1,453 ms
60,032 KB
testcase_08 AC 1,435 ms
60,032 KB
testcase_09 AC 1,438 ms
59,904 KB
testcase_10 AC 1,443 ms
60,032 KB
testcase_11 AC 1,451 ms
60,032 KB
testcase_12 AC 1,439 ms
60,032 KB
testcase_13 AC 1,428 ms
60,032 KB
testcase_14 AC 1,459 ms
59,904 KB
testcase_15 AC 1,423 ms
59,904 KB
testcase_16 AC 1,434 ms
60,032 KB
testcase_17 AC 1,445 ms
60,032 KB
testcase_18 AC 1,454 ms
60,032 KB
testcase_19 AC 1,420 ms
60,032 KB
testcase_20 AC 1,447 ms
60,032 KB
testcase_21 AC 1,430 ms
59,904 KB
testcase_22 AC 1,408 ms
59,904 KB
testcase_23 AC 1,427 ms
60,032 KB
testcase_24 AC 1,452 ms
60,032 KB
testcase_25 AC 1,417 ms
60,032 KB
testcase_26 AC 25 ms
11,008 KB
testcase_27 AC 1,122 ms
50,304 KB
testcase_28 AC 1,131 ms
50,176 KB
testcase_29 AC 1,137 ms
50,176 KB
testcase_30 AC 1,130 ms
50,048 KB
testcase_31 AC 1,128 ms
50,048 KB
testcase_32 AC 25 ms
10,752 KB
testcase_33 AC 576 ms
30,592 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N = int(input())
AB = [list(map(int, input().split())) for _ in range(N)]
v = 10**30
vh = 10**15
for a,b in AB:
    print((math.isqrt(a*v)+math.isqrt(b*v))//vh+1)
0