結果
問題 |
No.36 素数が嫌い!
|
ユーザー |
![]() |
提出日時 | 2020-04-25 08:37:30 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 497 bytes |
コンパイル時間 | 1,622 ms |
コンパイル使用メモリ | 167,160 KB |
実行使用メモリ | 8,320 KB |
最終ジャッジ日時 | 2024-11-06 14:29:28 |
合計ジャッジ時間 | 13,589 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 4 |
other | WA * 10 TLE * 2 -- * 14 |
ソースコード
#include <bits/stdc++.h> #define rep(i,n) for(ll (i)=0;(i)<(n);(i)++) #define repi(i,a,b) for(ll (i)=(a);(i)<(b);(i)++) #define SIZE_OF_ARRAY(array) (sizeof(array)/sizeof(array[0])) typedef long long ll; using namespace std; const ll mod = 1e9+7; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); ll n; cin >> n ; ll m = (n+1)/2; for( ll i = 2LL; i<=m ; i++){ if(n%i==0){ cout << "Yes" << endl; return 0; } } cout << "No" << endl; return 0; }