結果

問題 No.414 衝動
ユーザー Naoyk1212Naoyk1212
提出日時 2016-10-06 23:22:05
言語 C++11
(gcc 11.4.0)
結果
TLE  
実行時間 -
コード長 390 bytes
コンパイル時間 1,410 ms
コンパイル使用メモリ 159,324 KB
実行使用メモリ 16,840 KB
最終ジャッジ日時 2024-05-01 14:11:51
合計ジャッジ時間 5,855 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 -- -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;

int main(){
  long long m;
  cin >> m;
  long long x, y;
  bool f = false;
  for(long long i = 2; i < m; i++){
    for(long long j = 2; j < m; j++){
      if(i * j == m){
        cout << i << " " << j << endl;
        f = true;
        break;
      }
    }
    if(f == true)break;
  }
  if(f == false){
    cout << 1 << " " << m << endl;
  }
} 
0