結果

問題 No.312 置換処理
ユーザー 👑 CleyL
提出日時 2019-09-27 12:17:58
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 241 bytes
コンパイル時間 517 ms
コンパイル使用メモリ 64,000 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-24 06:50:43
合計ジャッジ時間 1,658 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 44 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main(){
    long long n;cin>>n;
    for(long long i = 3; n >= i*i; i++){
        if(n%i==0){
            cout << i << endl;
            return 0;
        }
    }
    cout << (n%2?n:n/2) << endl;
}
0