結果
問題 | No.795 Restrictions!!!!!!!!!!!!!! |
ユーザー |
![]() |
提出日時 | 2019-03-15 21:22:11 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 897 bytes |
コンパイル時間 | 826 ms |
コンパイル使用メモリ | 97,756 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-01 20:10:37 |
合計ジャッジ時間 | 1,541 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include<iostream> #include<vector> #include<algorithm> #include<functional> #include<queue> #include<stack> #include<set> #include<map> #include<unordered_map> #include<climits> #include<cstdlib> #include<cmath> #include<string> #include<iomanip> #include<bitset> using namespace std; #define ll long long int ll const MOD = 1000000007; ll const INF = (long long int)1 << 61; int main(){ cin.tie(0); ios::sync_with_stdio(false); ll n,m; cin >> n; cin >> m; if(n%2 == 0){ if(m %2 == 0){ cout << "Yes" << endl; }else{ cout <<"No" << endl; } }else{ if(m <= 10){ m -= 10; if(m %2 == 0){ cout << "Yes" << endl; }else{ cout << "No" << endl; } }else{ cout << "No" << endl; } } return 0; }