結果
問題 | No.414 衝動 |
ユーザー |
![]() |
提出日時 | 2019-05-17 15:02:31 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 423 ms / 1,000 ms |
コード長 | 211 bytes |
コンパイル時間 | 104 ms |
コンパイル使用メモリ | 7,076 KB |
実行使用メモリ | 38,124 KB |
最終ジャッジ日時 | 2024-11-15 09:22:40 |
合計ジャッジ時間 | 3,188 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
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)