結果

問題 No.809 かけ算
ユーザー k0gane_pk0gane_p
提出日時 2019-08-03 02:14:54
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 214 bytes
コンパイル時間 142 ms
コンパイル使用メモリ 10,616 KB
実行使用メモリ 8,088 KB
最終ジャッジ日時 2023-09-18 18:35:41
合計ジャッジ時間 1,094 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,904 KB
testcase_01 AC 17 ms
8,088 KB
testcase_02 AC 16 ms
7,888 KB
testcase_03 AC 16 ms
8,012 KB
testcase_04 AC 19 ms
8,060 KB
testcase_05 RE -
testcase_06 AC 16 ms
7,916 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
n = int(input())
if n == 1:
    print("1 1")
else:
    for i in range(2, int(math.sqrt(n))+1):
        if(n % i == 0):
            j = i
            break
    b = n // j
    print(str(b) + " " + str(j))
0