結果

問題 No.1063 ルートの計算 / Sqrt Calculation
ユーザー qib
提出日時 2023-01-30 22:12:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 149 bytes
コンパイル時間 273 ms
コンパイル使用メモリ 82,148 KB
実行使用メモリ 57,984 KB
最終ジャッジ日時 2024-06-30 06:21:58
合計ジャッジ時間 1,623 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

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