結果
問題 |
No.36 素数が嫌い!
|
ユーザー |
![]() |
提出日時 | 2020-05-31 20:45:46 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 368 bytes |
コンパイル時間 | 1,375 ms |
コンパイル使用メモリ | 166,704 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-18 14:18:00 |
合計ジャッジ時間 | 2,567 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; int count=0; ll i=2; while(i*i<=N){ if(N%i==0){ N/=i; count++; }else{ i++; } } if(count>0){ cout<<"YES"<<endl; }else{ cout<<"NO"<<endl; } }