結果
| 問題 |
No.36 素数が嫌い!
|
| コンテスト | |
| ユーザー |
cureskol
|
| 提出日時 | 2020-03-24 12:21:12 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 172 bytes |
| コンパイル時間 | 1,657 ms |
| コンパイル使用メモリ | 166,924 KB |
| 実行使用メモリ | 10,148 KB |
| 最終ジャッジ日時 | 2024-12-31 14:41:46 |
| 合計ジャッジ時間 | 111,092 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 9 TLE * 17 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
signed main(){
long long n;cin>>n;int cnt=0;
for(int i=2;i*i<=n;i++)if(n%i==0)cnt++;
cout<<(cnt>1?"YES":"NO")<<endl;
}
cureskol