結果
| 問題 | No.683 Two Operations No.3 | 
| コンテスト | |
| ユーザー |  Pulmn | 
| 提出日時 | 2018-05-01 17:54:12 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 261 bytes | 
| コンパイル時間 | 414 ms | 
| コンパイル使用メモリ | 53,596 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-06-28 01:14:11 | 
| 合計ジャッジ時間 | 1,195 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 10 WA * 6 | 
ソースコード
#include <iostream>
using namespace std;
typedef long long ll;
bool Rec(ll i,ll j){
	if(!i||!j) return 1;
	bool B=0;
	if(i%2==0) B|=Rec(i/2,j-1);
	if(j%2==0) B|=Rec(i-1,j/2);
	return B;
}
int A,B;
int main(){
	cin>>A>>B;
	cout<<(Rec(A,B)?"Yes":"No")<<endl;
}
            
            
            
        