結果
問題 | No.683 Two Operations No.3 |
ユーザー |
![]() |
提出日時 | 2018-05-01 18:07:19 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 260 bytes |
コンパイル時間 | 428 ms |
コンパイル使用メモリ | 53,456 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-28 09:53:40 |
合計ジャッジ時間 | 1,146 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
#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;}ll A,B;int main(){cin>>A>>B;cout<<(Rec(A,B)?"Yes":"No")<<endl;}