結果
問題 | No.414 衝動 |
ユーザー |
![]() |
提出日時 | 2016-10-21 00:51:57 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 13 ms / 1,000 ms |
コード長 | 541 bytes |
コンパイル時間 | 705 ms |
コンパイル使用メモリ | 73,856 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-15 09:11:42 |
合計ジャッジ時間 | 1,585 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
#include <algorithm>#include <cstdio>#include <iostream>#include <map>#include <math.h>#include <queue>#include <set>#include <sstream>#include <stack>#include <string>#include <vector>using namespace std;#define ll long long#define INF (1 << 30)#define INFLL (1LL << 60)int main() {ll m;cin >> m;ll max = (int)(sqrt(m) + 2);bool flag = true;for(int i = 2;i <= max;i++){if(m % i == 0){cout << m / i << " " << i << endl;flag = false;break;}}if(flag) cout << 1 << " " << m << endl;return 0;}