結果

問題 No.414 衝動
ユーザー okayunonaha
提出日時 2016-08-27 00:29:51
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
TLE  
実行時間 -
コード長 307 bytes
コンパイル時間 1,729 ms
コンパイル使用メモリ 53,596 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2024-11-08 17:29:43
合計ジャッジ時間 3,181 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 5 TLE * 1 -- * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main(void) {
  long long int m;
  cin >> m;
  cin.tie(0);
  ios::sync_with_stdio(false);
  for (long long int i = 2; i <= m; i++) {
    if(!(m%i)) {
      cout << m/i << " " << i << endl;
      return 0;
    }
  }
  cout << 1 << " " << m << endl;
  return 0;
}
0