結果
問題 | No.8041 なんとかのはなうらない |
ユーザー |
![]() |
提出日時 | 2019-04-01 21:37:25 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 563 bytes |
コンパイル時間 | 1,779 ms |
コンパイル使用メモリ | 165,192 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-26 21:38:08 |
合計ジャッジ時間 | 2,242 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
ソースコード
#include <bits/stdc++.h>using namespace std;#define rep(i,n) for(int i = 0;i<((int)(n));i++)#define reg(i,a,b) for(int i = ((int)(a));i<=((int)(b));i++)#define irep(i,n) for(int i = ((int)(n)-1);i>=0;i--)#define ireg(i,a,b) for(int i = ((int)(b));i>=((int)(a));i--)typedef long long ll;typedef pair<ll, ll> mp;ll mod = 1e9+7;//LLONG_MIN/*奇数なら最後が好きあとは通常のゲーム*/ll n;bool ok=false;int main(void){cin>>n;if((n%2==1)&&(n%4!=0))ok=true;if((n%2==0)&&(n%4!=1))ok=true;cout<<(ok?"Yes":"No")<<endl;return 0;}