結果
| 問題 | 
                            No.36 素数が嫌い!
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2017-09-19 01:44:02 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 148 bytes | 
| コンパイル時間 | 539 ms | 
| コンパイル使用メモリ | 64,500 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-11-08 02:44:31 | 
| 合計ジャッジ時間 | 1,960 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 WA * 1 | 
| other | AC * 22 WA * 4 | 
コンパイルメッセージ
main.cpp:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main()
      | ^~~~
            
            ソースコード
#include<iostream>
using namespace std;
long n,i,c;
main()
{
	cin>>n;
	for(i=2;i*i<=n;i++)for(c+=n%i<1;n%i<1;)n/=i;
	cout<<(c>1?"YES":"NO")<<endl;
}