結果

問題 No.414 衝動
ユーザー AREIDO2AREIDO2
提出日時 2016-08-26 23:12:51
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 246 bytes
コンパイル時間 120 ms
コンパイル使用メモリ 7,072 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-26 03:57:53
合計ジャッジ時間 2,114 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 11 ms
6,944 KB
testcase_02 AC 11 ms
6,940 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 AC 10 ms
6,944 KB
testcase_08 RE -
testcase_09 RE -
testcase_10 AC 11 ms
6,944 KB
testcase_11 RE -
testcase_12 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python
#coding:UTF-8

M = int(raw_input())

x1 = 1
x2 = 0

for i in range(2,M / 2 + 1):
     if M % i == 0:
          x2 = i
          y = M / x2
if x2 == 0:
     print "{0} {1}".format(x1,M)
else:
     print "{0} {1}".format(x2,y)
0