結果

問題 No.414 衝動
ユーザー maspymaspy
提出日時 2020-01-27 18:24:15
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 748 ms / 1,000 ms
コード長 308 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 10,596 KB
実行使用メモリ 67,304 KB
最終ジャッジ日時 2023-08-09 13:42:53
合計ジャッジ時間 5,651 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 748 ms
46,020 KB
testcase_01 AC 147 ms
46,068 KB
testcase_02 AC 151 ms
46,044 KB
testcase_03 AC 150 ms
46,172 KB
testcase_04 AC 150 ms
46,080 KB
testcase_05 AC 152 ms
46,204 KB
testcase_06 AC 154 ms
45,964 KB
testcase_07 AC 150 ms
46,208 KB
testcase_08 AC 150 ms
46,196 KB
testcase_09 AC 150 ms
46,076 KB
testcase_10 AC 152 ms
46,244 KB
testcase_11 AC 152 ms
46,048 KB
testcase_12 AC 152 ms
67,304 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

import numpy as np

M = int(read())

x = np.arange(1,10**6 + 10)

div = x[M % x == 0]

div = np.union1d(div, M//div)

if len(div) <= 2:
    print(1, M)
else:
    x = div[1]
    print(x, M//x)
0