結果

問題 No.312 置換処理
ユーザー はてる
提出日時 2025-06-20 15:02:52
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
TLE  
実行時間 -
コード長 343 bytes
コンパイル時間 703 ms
コンパイル使用メモリ 77,176 KB
実行使用メモリ 16,064 KB
最終ジャッジ日時 2025-06-20 15:02:57
合計ジャッジ時間 4,119 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 TLE * 1 -- * 43
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <stdio.h>
#include <vector>
#include <map>
#include <algorithm>

using namespace std;

int main(){
    long long int i = 3;
    long long int k;
    long long int mod;
    cin >> k;

    for(; i < k ; i++){
        mod = k % i;
        if(mod == 0){
            break;
        }
    }
    
    cout << i << endl;
}
0