結果

問題 No.683 Two Operations No.3
ユーザー kohei2019
提出日時 2022-03-12 15:44:22
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 227 bytes
コンパイル時間 340 ms
コンパイル使用メモリ 82,092 KB
実行使用メモリ 79,816 KB
最終ジャッジ日時 2024-09-16 22:57:30
合計ジャッジ時間 1,802 ms
ジャッジサーバーID
(参考情報)
judge4 / judge6
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11 RE * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B = map(int, input().split())

def dfs(s,t):
    if s == t == 0:
        print('Yes')
        exit()
    if s % 2 == 0 and t > 0:
        dfs(s//2,t-1)
    if t % 2 == 0 and s > 0:
        dfs(s-1,t//2)
dfs(A, B)
print('No') 
0