結果
| 問題 | 
                            No.683 Two Operations No.3
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2018-05-11 22:47:24 | 
| 言語 | C  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                MLE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 325 bytes | 
| コンパイル時間 | 169 ms | 
| コンパイル使用メモリ | 29,824 KB | 
| 実行使用メモリ | 812,928 KB | 
| 最終ジャッジ日時 | 2024-06-28 08:53:08 | 
| 合計ジャッジ時間 | 1,973 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 6 MLE * 1 -- * 9 | 
ソースコード
#include<stdio.h>
#include<stdlib.h>
void search(long long int a,long long int b){
	if(a==0&&b==0){
		printf("Yes\n");
		exit(0);
	}
	if(a%2==0&&b>0){
		search(a/2,b-1);
	}
	if(b%2==0&&a>0){
		search(a-1,b/2);
	}
}
int main(void){
	long long int a,b;
	scanf("%lld %lld",&a,&b);
	search(a,b);
	printf("No\n");
	return 0;
}