結果

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

ソースコード

diff #

#include <iostream>
#include <cstdint>

using namespace std;

int main() {

  ios::sync_with_stdio(false);
  cin.tie(0);

  int64_t m;
  cin >> m;

  for (int64_t i = 2; i * i <= m; ++i) {
    if(m % i == 0) {
      cout<< i << " " << m/i << endl;
      return 0;
    }
  }
  cout << 1 << " " << m << endl;
}
0