結果

問題 No.414 衝動
ユーザー maspymaspy
提出日時 2020-01-27 18:24:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 471 ms / 1,000 ms
コード長 308 bytes
コンパイル時間 76 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 59,840 KB
最終ジャッジ日時 2024-04-27 08:40:04
合計ジャッジ時間 7,203 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 468 ms
59,332 KB
testcase_01 AC 467 ms
59,840 KB
testcase_02 AC 456 ms
59,444 KB
testcase_03 AC 453 ms
59,240 KB
testcase_04 AC 464 ms
59,596 KB
testcase_05 AC 462 ms
59,244 KB
testcase_06 AC 460 ms
59,304 KB
testcase_07 AC 471 ms
59,460 KB
testcase_08 AC 463 ms
59,512 KB
testcase_09 AC 467 ms
59,664 KB
testcase_10 AC 463 ms
59,664 KB
testcase_11 AC 458 ms
59,240 KB
testcase_12 AC 454 ms
59,472 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