結果

問題 No.414 衝動
ユーザー elphe
提出日時 2024-11-14 14:17:47
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 31 ms / 1,000 ms
コード長 311 bytes
コンパイル時間 645 ms
コンパイル使用メモリ 66,456 KB
最終ジャッジ日時 2025-02-25 04:10:00
ジャッジサーバーID
(参考情報)
judge4 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cstdint>

using namespace std;

int main()
{
	cin.tie(nullptr);
	ios::sync_with_stdio(false);

	uint64_t M;
	cin >> M;

	uint32_t ans = 1;
	for (uint32_t i = 2; static_cast<uint64_t>(i) * i <= M; ++i)
		if (M % i == 0) ans = i;

	cout << ans << ' ' << M / ans << '\n';
	return 0;
}
0