結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 TLE -
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):
	if tmp_num%count ==0:
		tmp_num=int(first_num/count)
		dist=dist+1
		if dist > 1 and tmp_num > 1:
			result= tmp_num + " " + count;
		elif tmp_num == 1 and dist ==2:
			result= 1 + " " + first_num;
	count=count+1

print
0