結果
| 問題 | No.683 Two Operations No.3 | 
| コンテスト | |
| ユーザー |  🍮かんプリン | 
| 提出日時 | 2020-06-10 17:34:40 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                MLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 519 bytes | 
| コンパイル時間 | 2,030 ms | 
| コンパイル使用メモリ | 157,148 KB | 
| 実行使用メモリ | 818,048 KB | 
| 最終ジャッジ日時 | 2024-06-23 09:18:06 | 
| 合計ジャッジ時間 | 4,036 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 4 MLE * 1 -- * 11 | 
ソースコード
/**
 *   @FileName	a.cpp
 *   @Author	kanpurin
 *   @Created	2020.06.10 17:34:36
**/
#include "bits/stdc++.h" 
using namespace std; 
typedef long long ll;
bool isOK(ll x, ll y) {
    if (x == 0 && y == 0) return true;
    if (x % 2 == 1 && y % 2 == 1) return false;
    bool res = false;
    if (x % 2 == 0) res = res | isOK(x / 2, y - 1);
    if (y % 2 == 0) res = res | isOK(x - 1, y / 2);
    return res;
}
int main() {
    ll x,y;cin >> x >> y;
    if (isOK(x,y)) puts("Yes");
    else puts("No");
    return 0;
}
            
            
            
        