結果
| 問題 | 
                            No.683 Two Operations No.3
                             | 
                    
| コンテスト | |
| ユーザー | 
                             suga___0125
                         | 
                    
| 提出日時 | 2018-06-15 22:17:31 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 514 bytes | 
| コンパイル時間 | 641 ms | 
| コンパイル使用メモリ | 63,888 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-06-30 14:58:23 | 
| 合計ジャッジ時間 | 1,283 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 8 WA * 8 | 
ソースコード
#include <iostream>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <algorithm>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
int ans=0;
void aout(void){
	cout<<ans<<endl;
}
void out(int a){
	cout<<a<<endl;
}
int main(void){
	ll a,b;
	cin>>a>>b;
	while(1){
		if(a>b)swap(a,b);
		if(a==0&&b==0){
			cout<<"Yes\n";
          return 0;
		}
      if(b%2==0){
			b/=2;
			a--;
		}else if(a%2==0){
			a/=2;
			b--;
		}else{
			cout<<"No\n";
          return 0;
		}
		
	}
}
            
            
            
        
            
suga___0125