結果

問題 No.414 衝動
ユーザー parsee1053
提出日時 2020-05-24 23:57:50
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 12 ms / 1,000 ms
コード長 488 bytes
コンパイル時間 1,030 ms
コンパイル使用メモリ 72,660 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-15 09:26:09
合計ジャッジ時間 1,422 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <cmath>
#include <cstdio>
#include <deque>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>

using namespace std;

typedef long long ll;

#define MOD 1000000007

int main() {
  ll m;
  cin >> m;
  for (ll i = 2; i * i <= m; ++i) {
    if (m % i == 0) {
      cout << i << " " << (m / i) << endl;
      return 0;
    }
  }
  cout << 1 << " " << m << endl;
  return 0;
}
0