結果

問題 No.683 Two Operations No.3
ユーザー hedwig100hedwig100
提出日時 2020-05-22 11:02:36
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 284 bytes
コンパイル時間 188 ms
コンパイル使用メモリ 10,640 KB
実行使用メモリ 7,948 KB
最終ジャッジ日時 2023-07-27 11:20:03
合計ジャッジ時間 1,565 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 17 ms
7,748 KB
testcase_02 AC 17 ms
7,796 KB
testcase_03 AC 16 ms
7,876 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 16 ms
7,712 KB
testcase_07 AC 16 ms
7,752 KB
testcase_08 AC 17 ms
7,712 KB
testcase_09 WA -
testcase_10 AC 16 ms
7,828 KB
testcase_11 AC 16 ms
7,732 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 16 ms
7,948 KB
testcase_15 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B = map(int,input().split())
while A > 0 or B > 0:
    if A&1 and B&1:
        break
    elif A&1:
        A -= 1
        B >>= 1
    elif B&1:
        A >>= 1
        B -= 1
    else:
        A >>= 1
        B >>= 1
if A == 0 and B == 0:
    print('Yes')
else:
    print('No')




0