結果

問題 No.414 衝動
コンテスト
ユーザー bellangeldindon
提出日時 2019-05-17 15:02:31
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 95 ms / 1,000 ms
コード長 211 bytes
記録
コンパイル時間 186 ms
コンパイル使用メモリ 77,292 KB
最終ジャッジ日時 2025-12-04 01:48:33
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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