結果

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

ソースコード

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 (long long 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