結果

問題 No.1063 ルートの計算 / Sqrt Calculation
ユーザー TomoyarnTomoyarn
提出日時 2022-02-11 06:05:29
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 260 bytes
コンパイル時間 144 ms
コンパイル使用メモリ 82,584 KB
実行使用メモリ 58,112 KB
最終ジャッジ日時 2024-06-26 23:02:49
合計ジャッジ時間 1,615 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

def yukicoder1063(n):
    x = int(n ** 0.5)
    b = n
    for i in range(1, x + 1):
        if n % (i ** 2) == 0:
            a = i
    b = n // (a ** 2)
    ans = '{} {}'.format(str(a), str(b))
    return ans
    

n = int(input())
print(yukicoder1063(n))



0