結果
| 問題 | No.795 Restrictions!!!!!!!!!!!!!! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-03-18 21:30:12 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| + 246µs | |
| コード長 | 413 bytes |
| 記録 | |
| コンパイル時間 | 291 ms |
| コンパイル使用メモリ | 72,448 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-18 01:13:45 |
| 合計ジャッジ時間 | 1,729 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
#include <iostream>
using namespace std;
typedef long long LL;
int main(int argc, char* argv[])
{
LL N,M;
cin>>N>>M;
if (N%2==0){
if (M%2==0){
cout<<"Yes"<<endl;
return 0;
}else{
cout<<"No"<<endl;
return 0;
}
}else{
if (N>1){
N=1;
}
if (10*M<100){
cout<<"No"<<endl;
return 0;
}
if ((10*M-100)%2==0){
cout<<"Yes"<<endl;
}else{
cout<<"No"<<endl;
}
}
return 0;
}