結果
問題 |
No.36 素数が嫌い!
|
ユーザー |
![]() |
提出日時 | 2015-07-29 23:22:15 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 577 bytes |
コンパイル時間 | 573 ms |
コンパイル使用メモリ | 71,160 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-17 22:27:37 |
合計ジャッジ時間 | 1,844 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 17 WA * 9 |
ソースコード
#include <cstdio> #include <cstdlib> #include <iostream> #include <string> #include <cmath> #include <algorithm> #include <vector> #include <queue> #include <stack> #include <map> #include <set> #include <cstring> typedef long long ll; using namespace std; #define mod 1000003 #define INF 10000000 #define LLINF 2000000000000000000LL #define SIZE 100000 int mm[2010][2010]={0}; int main(){ ll n; cin >> n; for(ll i=2;i*i<=n;i++){ if(n%i==0){ puts("YES"); return 0; } } puts("NO"); return 0; }