結果

問題 No.36 素数が嫌い!
ユーザー cureskol
提出日時 2020-03-24 12:22:09
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 178 bytes
コンパイル時間 1,603 ms
コンパイル使用メモリ 166,688 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-31 14:41:55
合計ジャッジ時間 3,880 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 25 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

signed main(){
  long long n;cin>>n;int cnt=0;
  for(long long i=2;i*i<=n;i++)if(n%i==0)cnt++;
  cout<<(cnt>1?"YES":"NO")<<endl;
}
0