結果
問題 |
No.36 素数が嫌い!
|
ユーザー |
|
提出日時 | 2018-03-20 17:31:45 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 489 bytes |
コンパイル時間 | 1,434 ms |
コンパイル使用メモリ | 166,848 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-24 08:36:54 |
合計ジャッジ時間 | 2,549 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 24 WA * 2 |
ソースコード
#include <bits/stdc++.h> using namespace std; int Count( const long long N ) { long long i; long long X; int R; int iCnt; X = N; iCnt = 0; while( X > 0 && X % 2 == 0 ) { iCnt++; X /= 2; } for( i = 3; i * i <= X; i += 2 ) { while( X > 0 && X % i == 0 ) { iCnt++; X /= i; } } if( X > 0 ) iCnt++; return iCnt; } //int Yuki0036() int main() { long long N; cin >> N; if( Count( N ) > 2 ) cout << "YES" << endl; else cout << "NO" << endl; return 0; }