結果

問題 No.414 衝動
ユーザー olphe
提出日時 2016-11-15 00:02:50
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 13 ms / 1,000 ms
コード長 217 bytes
コンパイル時間 518 ms
コンパイル使用メモリ 58,328 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-15 09:11:44
合計ジャッジ時間 1,299 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "iostream"
#include "math.h"
using namespace std;

long long int N;

int main() {
	cin >> N;
	for (int i =sqrt(N) ; i >= 1; i--) {
		if (N%i == 0) {
			cout << i << " " << N / i << "\n";
			return 0;
		}
	}
}
0