結果
問題 |
No.36 素数が嫌い!
|
ユーザー |
![]() |
提出日時 | 2020-05-31 20:41:46 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 349 bytes |
コンパイル時間 | 1,606 ms |
コンパイル使用メモリ | 166,120 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-18 13:00:50 |
合計ジャッジ時間 | 3,048 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 17 WA * 9 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll=long long; using Graph=vector<vector<int>>; #define MOD 998244353 #define INF 1000000000 int main(){ ll N; cin>>N; bool flag=false; for(ll i=2;i*i<=N;i++){ if(N%i==0){ flag=true; break; } } if(flag){ cout<<"YES"<<endl; }else{ cout<<"NO"<<endl; } }