結果

問題 No.414 衝動
ユーザー HachimoriHachimori
提出日時 2016-08-26 22:22:06
言語 Python2
(2.7.18)
結果
AC  
実行時間 116 ms / 1,000 ms
コード長 278 bytes
コンパイル時間 1,808 ms
コンパイル使用メモリ 6,504 KB
実行使用メモリ 6,204 KB
最終ジャッジ日時 2023-08-09 13:17:24
合計ジャッジ時間 3,235 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,148 KB
testcase_01 AC 11 ms
6,044 KB
testcase_02 AC 11 ms
6,064 KB
testcase_03 AC 116 ms
6,052 KB
testcase_04 AC 11 ms
6,132 KB
testcase_05 AC 113 ms
5,992 KB
testcase_06 AC 114 ms
6,204 KB
testcase_07 AC 11 ms
6,124 KB
testcase_08 AC 72 ms
6,204 KB
testcase_09 AC 110 ms
6,100 KB
testcase_10 AC 11 ms
5,972 KB
testcase_11 AC 12 ms
5,968 KB
testcase_12 AC 11 ms
5,992 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python
#coding:utf8

def read():
    return input()


def work(N):
    mul = 2
    while mul * mul <= N:
        if N % mul == 0:
            print mul, N / mul
            return
        mul += 1
    print 1, N
    


if __name__ == "__main__":
    work(read())
0