結果

問題 No.312 置換処理
ユーザー izryt(趣味)izryt(趣味)
提出日時 2015-12-27 08:02:35
言語 C++11
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 264 bytes
コンパイル時間 2,017 ms
コンパイル使用メモリ 158,424 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-19 07:21:33
合計ジャッジ時間 3,307 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 39 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

using ll = long long;

int main()
{
    ll n; cin >> n;

    for (int i = 3; i <= sqrt(n); ++i) {
        if (!(n % i)) {
            cout << i << endl;
            return 0;
        }
    }

    cout << n << endl;
}
0