結果

問題 No.809 かけ算
ユーザー BantakoBantako
提出日時 2019-04-24 11:47:23
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 320 bytes
コンパイル時間 1,568 ms
コンパイル使用メモリ 161,780 KB
実行使用メモリ 8,704 KB
最終ジャッジ日時 2024-04-25 05:42:07
合計ジャッジ時間 5,321 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 WA -
testcase_02 AC 2 ms
5,376 KB
testcase_03 AC 1 ms
5,376 KB
testcase_04 AC 2 ms
5,376 KB
testcase_05 TLE -
testcase_06 AC 3 ms
5,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:7:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    7 | main(){
      | ^~~~

ソースコード

diff #

#include<bits/stdc++.h>
#define rep(i,a,b) for(int i=int(a);i<int(b);++i)
using namespace std;
typedef long long ll;
int INF = (1LL << 30) - 1;
int MOD = 1e9+7;
main(){
    int C;
    cin >> C;
    rep(i,2,C){
        if(C % i == 0){
            cout << i << " " << C / i << endl;
            return 0;
        }
    }
}
0