結果

問題 No.414 衝動
ユーザー tomatonosuketomatonosuke
提出日時 2016-08-26 22:54:53
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 153 ms / 1,000 ms
コード長 206 bytes
コンパイル時間 1,096 ms
コンパイル使用メモリ 10,656 KB
実行使用メモリ 8,076 KB
最終ジャッジ日時 2023-08-09 13:22:18
合計ジャッジ時間 2,458 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
8,036 KB
testcase_01 AC 15 ms
7,936 KB
testcase_02 AC 15 ms
7,936 KB
testcase_03 AC 153 ms
8,032 KB
testcase_04 AC 16 ms
7,924 KB
testcase_05 AC 152 ms
8,048 KB
testcase_06 AC 153 ms
8,040 KB
testcase_07 AC 15 ms
7,956 KB
testcase_08 AC 94 ms
7,984 KB
testcase_09 AC 152 ms
7,960 KB
testcase_10 AC 16 ms
8,016 KB
testcase_11 AC 16 ms
8,076 KB
testcase_12 AC 16 ms
7,888 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
targ = int(input())
for t in range(2,math.floor(math.sqrt(targ) ) + 1):
    if targ % t == 0:
        print(str(t) + ' ' + str(targ // t))
        break
else:
    print(str(1) + " " + str(targ))
0