結果

問題 No.414 衝動
ユーザー lloyzlloyz
提出日時 2022-12-01 00:12:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 55 ms / 1,000 ms
コード長 124 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 58,892 KB
最終ジャッジ日時 2024-04-16 18:57:33
合計ジャッジ時間 1,788 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
58,468 KB
testcase_01 AC 38 ms
52,532 KB
testcase_02 AC 37 ms
53,348 KB
testcase_03 AC 54 ms
58,872 KB
testcase_04 AC 37 ms
52,808 KB
testcase_05 AC 55 ms
58,560 KB
testcase_06 AC 53 ms
58,892 KB
testcase_07 AC 37 ms
52,852 KB
testcase_08 AC 48 ms
58,128 KB
testcase_09 AC 54 ms
58,592 KB
testcase_10 AC 37 ms
52,612 KB
testcase_11 AC 40 ms
57,940 KB
testcase_12 AC 36 ms
53,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

m = int(input())

f = 2
while f * f <= m:
    if m % f == 0:
        print(f, m // f)
        exit()
    f += 1
print(1, m)
0