結果
| 問題 | No.795 Restrictions!!!!!!!!!!!!!! |
| コンテスト | |
| ユーザー |
kpinkcat
|
| 提出日時 | 2023-07-29 09:57:01 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 2,000 ms |
| コード長 | 415 bytes |
| 記録 | |
| コンパイル時間 | 826 ms |
| コンパイル使用メモリ | 103,512 KB |
| 最終ジャッジ日時 | 2025-02-15 20:55:09 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
#include<iostream>
#include<string>
#include<algorithm>
#include<cctype>
#include<set>
#include<bitset>
#include<math.h>
#include<map>
#include<queue>
#include<iomanip>
using namespace std;
int main(){
string n, m;
int n1, m1;
cin >> n >> m;
n1 = n[n.size()-1] - '0', m1 = m[m.size()-1] - '0';
cout << (((!(n1%2) && !(m1%2)) || ((n1%2) && (m.size() > 1) && !(m1%2))) ? "Yes" : "No") << endl;
}
kpinkcat