結果

問題 No.414 衝動
ユーザー StarMatyanStarMatyan
提出日時 2020-10-22 17:38:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 366 bytes
コンパイル時間 353 ms
コンパイル使用メモリ 10,504 KB
実行使用メモリ 16,812 KB
最終ジャッジ日時 2023-09-28 14:43:55
合計ジャッジ時間 4,726 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 -- -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

first_num =int(input())
tmp_num =first_num
count = 1
dist=0
result=0

while(tmp_num >= 1 and count <=first_num and dist < 3):
	if tmp_num%count ==0:
		tmp_num=int(first_num/count)
		dist=dist+1
		if dist > 1 and tmp_num > 1:
			result= str(tmp_num) + " " + str(count);
		elif tmp_num == 1 and dist ==2:
			result= "1 " + str(first_num);
	count=count+1

print(result)
0