結果

問題 No.36 素数が嫌い!
ユーザー twice_l
提出日時 2017-12-27 23:54:09
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
TLE  
実行時間 -
コード長 365 bytes
コンパイル時間 857 ms
コンパイル使用メモリ 60,776 KB
実行使用メモリ 13,640 KB
最終ジャッジ日時 2024-12-21 08:16:59
合計ジャッジ時間 92,933 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 13 TLE * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <cmath>

using namespace std;

int main()
{
  long long N;
  cin >> N;

  int count = 0;
  for(int i=2; i<=N; ++i){
    while(N%i == 0){
      N /= i;
      ++count;
      if(count == 3){
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
0