結果

問題 No.414 衝動
ユーザー willowoooo
提出日時 2016-08-27 00:38:37
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
TLE  
実行時間 -
コード長 325 bytes
コンパイル時間 1,126 ms
コンパイル使用メモリ 56,700 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2024-11-08 17:40:20
合計ジャッジ時間 3,421 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 5 TLE * 1 -- * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<vector>
using namespace std;



int main() {
	long long n;
	cin >> n;
	if (n % 2 == 0) {
		cout << 2 << " " << n / 2 << endl;
		return 0;
	}
	for (int i = 3; i*i < n; i++)
	{
		if (n%i == 0)
		{
			cout << i << " " << n / i << endl;
			return 0;
		}
	}
	cout << 1 << " " << n << endl;
	return 0;
}
0