結果

問題 No.414 衝動
ユーザー 双六双六
提出日時 2020-07-29 03:50:24
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 115 ms / 1,000 ms
コード長 530 bytes
コンパイル時間 955 ms
コンパイル使用メモリ 87,048 KB
実行使用メモリ 76,980 KB
最終ジャッジ日時 2023-08-09 13:46:01
合計ジャッジ時間 3,035 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 98 ms
76,832 KB
testcase_01 AC 91 ms
71,288 KB
testcase_02 AC 96 ms
71,496 KB
testcase_03 AC 111 ms
76,652 KB
testcase_04 AC 91 ms
71,992 KB
testcase_05 AC 108 ms
76,652 KB
testcase_06 AC 110 ms
76,980 KB
testcase_07 AC 92 ms
71,500 KB
testcase_08 AC 105 ms
76,680 KB
testcase_09 AC 115 ms
76,716 KB
testcase_10 AC 93 ms
71,600 KB
testcase_11 AC 100 ms
76,680 KB
testcase_12 AC 91 ms
71,936 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# import sys; input = sys.stdin.buffer.readline
# sys.setrecursionlimit(10**7)
from collections import defaultdict
con = 10 ** 9 + 7; INF = float("inf")

def getlist():
	return list(map(int, input().split()))

#処理内容
def main():
	M = int(input())
	if M <= 10 ** 6:
		for i in range(2, M - 1):
			if M % i == 0:
				print(i, int(M // i))
				return

		print(1, M)
	else:
		for i in range(2, int((M ** 0.5 + 1) // 1)):
			if M % i == 0:
				print(i, int(M // i))
				return

		print(1, M)


if __name__ == '__main__':
	main()
0