結果

問題 No.1063 ルートの計算 / Sqrt Calculation
ユーザー qibqib
提出日時 2023-01-30 22:12:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 149 bytes
コンパイル時間 771 ms
コンパイル使用メモリ 86,788 KB
実行使用メモリ 75,852 KB
最終ジャッジ日時 2023-09-12 18:40:18
合計ジャッジ時間 3,149 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,380 KB
testcase_01 AC 71 ms
71,240 KB
testcase_02 AC 72 ms
70,756 KB
testcase_03 AC 76 ms
75,448 KB
testcase_04 AC 72 ms
71,384 KB
testcase_05 AC 75 ms
75,828 KB
testcase_06 AC 75 ms
75,444 KB
testcase_07 AC 75 ms
75,340 KB
testcase_08 AC 76 ms
75,648 KB
testcase_09 AC 76 ms
75,740 KB
testcase_10 AC 76 ms
75,464 KB
testcase_11 AC 76 ms
75,720 KB
testcase_12 AC 76 ms
75,852 KB
testcase_13 AC 77 ms
75,692 KB
testcase_14 AC 75 ms
75,480 KB
testcase_15 AC 76 ms
75,488 KB
testcase_16 AC 75 ms
75,492 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

n = int(input())

for a in range(int(math.sqrt(n)), 0, -1):
  if n % (a * a) == 0:
    b = n // (a * a)
    print(f"{a} {b}")
    exit()
0