結果

問題 No.809 かけ算
ユーザー sonotarousonotarou
提出日時 2021-01-13 21:44:04
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
TLE  
実行時間 -
コード長 483 bytes
コンパイル時間 1,358 ms
コンパイル使用メモリ 163,396 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-14 18:23:51
合計ジャッジ時間 10,029 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define all(x) x.begin(),x.end()
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
template<class T> inline bool chmax(T&a,T b){if(a<b){a=b;return 1;}return 0;}
template<class T> inline bool chmin(T&a,T b){if(a>b){a=b;return 1;}return 0;}
using ll = long long;

int c,a,b;

int main () {
    ios::sync_with_stdio(false); 
    cin.tie(0);

    cin >> c;
    rep(i,1e9+1)if(c%(i+1)==0) a=i+1, b=c/a;
    cout << a << " " << b << endl;
}
0