結果
| 問題 | No.683 Two Operations No.3 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2019-09-04 15:19:19 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 393 bytes | 
| コンパイル時間 | 280 ms | 
| コンパイル使用メモリ | 12,288 KB | 
| 実行使用メモリ | 298,880 KB | 
| 最終ジャッジ日時 | 2024-12-26 19:10:53 | 
| 合計ジャッジ時間 | 25,709 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 8 TLE * 8 | 
ソースコード
x, y = map(int, input().split())
ans = 0
l = [[x, y]]
for i, j in l:
    if i == 0 and j == 0:
        ans += 1
    elif i % 2 == j % 2 == 1:
        ans += 0
    elif i % 2 == 0 and j % 2 != 0:
        l.append([i//2, j-1])
    elif i % 2 != 0 and j % 2 == 0:
        l.append([i-1, j//2])
    else:
        l.append([i//2, j-1])
        l.append([i-1, j//2])
print(['No', 'Yes'][ans != 0])
            
            
            
        