結果
問題 |
No.414 衝動
|
ユーザー |
![]() |
提出日時 | 2017-10-24 22:28:12 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 12 ms / 1,000 ms |
コード長 | 558 bytes |
コンパイル時間 | 580 ms |
コンパイル使用メモリ | 79,564 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-15 09:17:22 |
合計ジャッジ時間 | 1,455 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
#include <iostream> #include <vector> #include <string> #include <cstring> #include <math.h> #include <cmath> #include <limits.h> #include <map> #include <set> #include <queue> #include <algorithm> #include <functional> #include <stdio.h> using namespace std; long long MOD = 1000000007; int main() { long long M; cin >> M; for ( long long a = 2; a*a <= M; a++ ) { if ( M%a == 0 ) { cout << a << " " << M/a << endl; return 0; } } cout << 1 << " " << M << endl; return 0; }