結果

問題 No.414 衝動
ユーザー albicillaalbicilla
提出日時 2016-10-05 23:33:33
言語 C++11
(gcc 11.4.0)
結果
TLE  
実行時間 -
コード長 256 bytes
コンパイル時間 1,152 ms
コンパイル使用メモリ 159,372 KB
実行使用メモリ 16,832 KB
最終ジャッジ日時 2024-05-01 13:01:01
合計ジャッジ時間 5,796 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;

using ll = long long;
int main(){
  ll n;
  cin>>n;
  ll ans1,ans2;
  for(int i=1;i*i<=n;i++){
    int j=n/i;
    if(i*j==n){
      ans1=i;
      ans2=j;
    }
  }
  cout<<ans1<<" "<<ans2<<endl;
  return 0;
}
0