結果

問題 No.1063 ルートの計算 / Sqrt Calculation
ユーザー TomoyarnTomoyarn
提出日時 2022-02-11 06:06:03
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 250 bytes
コンパイル時間 278 ms
コンパイル使用メモリ 87,160 KB
実行使用メモリ 76,008 KB
最終ジャッジ日時 2023-09-09 05:53:46
合計ジャッジ時間 2,392 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,424 KB
testcase_01 AC 69 ms
71,492 KB
testcase_02 AC 69 ms
71,488 KB
testcase_03 AC 70 ms
76,008 KB
testcase_04 AC 71 ms
71,292 KB
testcase_05 AC 75 ms
75,904 KB
testcase_06 AC 72 ms
75,748 KB
testcase_07 AC 72 ms
75,924 KB
testcase_08 AC 71 ms
75,840 KB
testcase_09 AC 72 ms
75,752 KB
testcase_10 AC 71 ms
76,008 KB
testcase_11 AC 71 ms
75,620 KB
testcase_12 AC 71 ms
75,752 KB
testcase_13 AC 72 ms
75,808 KB
testcase_14 AC 72 ms
75,696 KB
testcase_15 AC 72 ms
75,752 KB
testcase_16 AC 72 ms
75,760 KB
権限があれば一括ダウンロードができます

ソースコード

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(a, b)
    return ans
    

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



0