結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 454 ms
59,464 KB
testcase_01 AC 457 ms
59,304 KB
testcase_02 AC 454 ms
59,652 KB
testcase_03 AC 463 ms
59,596 KB
testcase_04 AC 459 ms
59,808 KB
testcase_05 AC 461 ms
59,532 KB
testcase_06 AC 457 ms
59,300 KB
testcase_07 AC 474 ms
59,296 KB
testcase_08 AC 458 ms
59,596 KB
testcase_09 AC 452 ms
59,312 KB
testcase_10 AC 459 ms
59,228 KB
testcase_11 AC 449 ms
59,308 KB
testcase_12 AC 453 ms
59,240 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