結果
問題 |
No.414 衝動
|
ユーザー |
![]() |
提出日時 | 2016-08-27 00:40:12 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 339 bytes |
コンパイル時間 | 810 ms |
コンパイル使用メモリ | 56,924 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-08 17:43:09 |
合計ジャッジ時間 | 1,590 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 WA * 2 |
ソースコード
#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; }