結果
問題 |
No.414 衝動
|
ユーザー |
![]() |
提出日時 | 2016-08-27 00:41:23 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 12 ms / 1,000 ms |
コード長 | 340 bytes |
コンパイル時間 | 448 ms |
コンパイル使用メモリ | 58,300 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-15 09:05:50 |
合計ジャッジ時間 | 1,324 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
#include<iostream> #include<vector> using namespace std; int main() { long long int 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; }