結果

問題 No.36 素数が嫌い!
ユーザー 👑 CleyL
提出日時 2020-01-16 19:25:46
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 238 bytes
コンパイル時間 614 ms
コンパイル使用メモリ 65,020 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-24 01:09:22
合計ジャッジ時間 1,751 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 17 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main(){
    long long n;cin>>n;
    for(long long i = 2; n >= i*i; i++){
        if(!(n%i)){
            cout << "YES" << endl;
            return 0;
        }
    }
    cout << "NO" << endl;
}
0