結果

問題 No.2420 Simple Problem
ユーザー 👑 H20H20
提出日時 2023-08-12 14:05:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 958 ms / 2,000 ms
コード長 175 bytes
コンパイル時間 536 ms
コンパイル使用メモリ 81,852 KB
実行使用メモリ 107,872 KB
最終ジャッジ日時 2023-10-29 19:16:43
合計ジャッジ時間 36,176 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
53,664 KB
testcase_01 AC 449 ms
89,184 KB
testcase_02 AC 90 ms
76,092 KB
testcase_03 AC 220 ms
81,152 KB
testcase_04 AC 746 ms
101,628 KB
testcase_05 AC 509 ms
92,348 KB
testcase_06 AC 909 ms
107,836 KB
testcase_07 AC 952 ms
107,856 KB
testcase_08 AC 904 ms
107,800 KB
testcase_09 AC 906 ms
107,852 KB
testcase_10 AC 893 ms
107,840 KB
testcase_11 AC 891 ms
107,872 KB
testcase_12 AC 892 ms
107,840 KB
testcase_13 AC 889 ms
107,860 KB
testcase_14 AC 929 ms
107,844 KB
testcase_15 AC 895 ms
107,840 KB
testcase_16 AC 917 ms
107,800 KB
testcase_17 AC 958 ms
107,844 KB
testcase_18 AC 898 ms
107,784 KB
testcase_19 AC 892 ms
107,860 KB
testcase_20 AC 938 ms
107,860 KB
testcase_21 AC 910 ms
107,868 KB
testcase_22 AC 939 ms
107,848 KB
testcase_23 AC 956 ms
107,860 KB
testcase_24 AC 941 ms
107,872 KB
testcase_25 AC 899 ms
107,856 KB
testcase_26 AC 40 ms
53,692 KB
testcase_27 AC 740 ms
101,792 KB
testcase_28 AC 722 ms
101,784 KB
testcase_29 AC 724 ms
101,784 KB
testcase_30 AC 723 ms
101,800 KB
testcase_31 AC 732 ms
101,804 KB
testcase_32 AC 35 ms
53,692 KB
testcase_33 AC 415 ms
89,560 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