結果

問題 No.414 衝動
ユーザー qibqib
提出日時 2023-05-04 22:37:16
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 56 ms / 1,000 ms
コード長 144 bytes
コンパイル時間 240 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 59,076 KB
最終ジャッジ日時 2024-05-02 02:30:30
合計ジャッジ時間 1,896 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
57,884 KB
testcase_01 AC 39 ms
53,380 KB
testcase_02 AC 38 ms
53,572 KB
testcase_03 AC 54 ms
59,076 KB
testcase_04 AC 39 ms
52,824 KB
testcase_05 AC 54 ms
57,820 KB
testcase_06 AC 55 ms
58,880 KB
testcase_07 AC 38 ms
53,372 KB
testcase_08 AC 49 ms
58,856 KB
testcase_09 AC 56 ms
58,060 KB
testcase_10 AC 39 ms
51,944 KB
testcase_11 AC 43 ms
58,504 KB
testcase_12 AC 39 ms
52,980 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

m = int(input())

for x in range(2, int(math.sqrt(m)) + 1):
  if m % x == 0:
    print(f"{x} {m // x}")
    exit()

print(f"1 {m}")
0