結果

問題 No.414 衝動
コンテスト
ユーザー StarMatyan
提出日時 2020-10-22 17:38:20
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
TLE  
実行時間 -
コード長 366 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 696 ms
コンパイル使用メモリ 20,696 KB
実行使用メモリ 31,684 KB
最終ジャッジ日時 2026-04-03 04:13:40
合計ジャッジ時間 5,182 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other TLE * 1 -- * 12
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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