結果

問題 No.414 衝動
ユーザー bellangeldindonbellangeldindon
提出日時 2019-05-17 15:02:31
言語 Python2
(2.7.18)
結果
AC  
実行時間 464 ms / 1,000 ms
コード長 211 bytes
コンパイル時間 277 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 38,184 KB
最終ジャッジ日時 2024-04-27 08:38:04
合計ジャッジ時間 3,023 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
32,236 KB
testcase_01 AC 13 ms
6,940 KB
testcase_02 AC 12 ms
6,944 KB
testcase_03 AC 431 ms
38,184 KB
testcase_04 AC 47 ms
38,144 KB
testcase_05 AC 422 ms
38,104 KB
testcase_06 AC 464 ms
37,948 KB
testcase_07 AC 11 ms
6,944 KB
testcase_08 AC 246 ms
24,492 KB
testcase_09 AC 423 ms
38,104 KB
testcase_10 AC 11 ms
6,940 KB
testcase_11 AC 16 ms
8,320 KB
testcase_12 AC 12 ms
7,296 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
M = int(raw_input())
if M <= 2: print '1 '+str(M)
else:
	for i in range(2, int(math.sqrt(M))+1):
		if M%i == 0:
			print str(i)+' '+str(M/i)
			break
		if i == int(math.sqrt(M)):
			print '1 '+str(M)
0