結果

問題 No.809 かけ算
ユーザー Bantako
提出日時 2019-04-24 11:47:23
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 320 bytes
コンパイル時間 1,678 ms
コンパイル使用メモリ 165,516 KB
実行使用メモリ 10,020 KB
最終ジャッジ日時 2024-11-07 15:46:17
合計ジャッジ時間 5,357 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 3 WA * 1 TLE * 1 -- * 1
権限があれば一括ダウンロードができます
コンパイルメッセージ
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