結果

問題 No.312 置換処理
ユーザー izryt(趣味)
提出日時 2015-12-27 08:07:22
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 266 bytes
コンパイル時間 1,323 ms
コンパイル使用メモリ 158,476 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-19 07:21:48
合計ジャッジ時間 2,285 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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; pow(i, 2) <= n; ++i) {
        if (!(n % i)) {
            cout << i << endl;
            return 0;
        }
    }

    cout << n << endl;
}
0