結果
問題 | No.414 衝動 |
ユーザー |
![]() |
提出日時 | 2020-10-27 09:47:18 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 13 ms / 1,000 ms |
コード長 | 317 bytes |
コンパイル時間 | 2,056 ms |
コンパイル使用メモリ | 191,908 KB |
最終ジャッジ日時 | 2025-01-15 16:00:17 |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int64_t M; cin >> M; for (int64_t i = 2; i * i < M + 1; i++) { if (M % i == 0) { cout << i << ' ' << M / i << '\n'; return 0; } } cout << 1 << ' ' << M << '\n'; return 0; }