結果

問題 No.414 衝動
コンテスト
ユーザー bellangeldindon
提出日時 2019-05-17 15:02:31
言語 PyPy2
(7.3.20)
コンパイル:
pypy2 -m py_compile _filename_
実行:
/usr/bin/pypy2 Main.pyc
結果
AC  
実行時間 55 ms / 1,000 ms
+ 461µs
コード長 211 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 62 ms
コンパイル使用メモリ 81,160 KB
実行使用メモリ 82,352 KB
最終ジャッジ日時 2026-07-18 20:02:14
合計ジャッジ時間 2,142 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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