結果

問題 No.809 かけ算
ユーザー jack007xxjack007xx
提出日時 2019-04-17 21:50:05
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 277 bytes
コンパイル時間 587 ms
コンパイル使用メモリ 55,448 KB
実行使用メモリ 7,992 KB
最終ジャッジ日時 2023-10-22 07:35:38
合計ジャッジ時間 5,673 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <iostream>
using namespace std;

int main(int argc, char const *argv[])
{
    int C;
    cin >> C;
    int n = C-1;
    while(n){
        if(C%n == 0){
            cout << n << ' ' << (int)(C/n) << endl;
            break;
        }
        n--;
    }
    return 0;
}
0