結果
| 問題 |
No.795 Restrictions!!!!!!!!!!!!!!
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-11 03:49:59 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 18 ms / 2,000 ms |
| コード長 | 473 bytes |
| コンパイル時間 | 1,738 ms |
| コンパイル使用メモリ | 194,144 KB |
| 最終ジャッジ日時 | 2025-01-14 09:26:23 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
#include <bits/stdc++.h>
#define rep(i, ss, ee) for (int i = ss; i < ee; ++i)
using namespace std;
void solve() {
string a, b;
cin >> a >> b;
string ans = "No";
if (a.back() % 2 == 0 && b.back() % 2 == 0)
ans = "Yes";
else if (a.back() % 2 == 1 && b.back() % 2 == 0) {
if (b.size() > 1 && (stoi(b.substr(b.size() - 2))) >= 10) ans = "Yes";
}
cout << ans << endl;
}
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
solve();
getchar();
}