結果
| 問題 | No.795 Restrictions!!!!!!!!!!!!!! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-03-16 05:55:59 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 433 bytes |
| 記録 | |
| コンパイル時間 | 2,061 ms |
| コンパイル使用メモリ | 192,592 KB |
| 最終ジャッジ日時 | 2025-01-06 22:28:29 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
#define _USE_MATH_DEFINES
#include <bits/stdc++.h>
using namespace std;
signed main() {
ios::sync_with_stdio(false); cin.tie(0);
string n, m;
cin >> n >> m;
int a = n.back() - '0', b = m.back() - '0';
if (b % 2 == 1) {
cout << "No" << endl;
return 0;
}
if (a % 2 == 0) {
cout << "Yes" << endl;
} else {
if ((int) m.length() > 1) cout << "Yes" << endl;
else cout << "No" << endl;
}
return 0;
}