結果

問題 No.36 素数が嫌い!
ユーザー eri
提出日時 2015-07-24 03:05:15
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
TLE  
実行時間 -
コード長 255 bytes
コンパイル時間 351 ms
コンパイル使用メモリ 54,428 KB
実行使用メモリ 9,888 KB
最終ジャッジ日時 2024-07-08 12:44:18
合計ジャッジ時間 12,837 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample -- * 4
other TLE * 1 -- * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
using namespace std;
typedef long long LL;
int main(){
	int cnt = 0;
	LL n; cin >> n;
	for (int i = 2; i*i <= n; i++){
		while (n % i == 0){ cnt++; n /= i; }
	}
	if (n != 1) cnt++;
	cout << (cnt < 3 ? "NO" : "YES") << endl;
	return 0;
}
0