結果
| 問題 | No.683 Two Operations No.3 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-05-22 11:02:36 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 284 bytes |
| 記録 | |
| コンパイル時間 | 179 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-10-04 05:22:29 |
| 合計ジャッジ時間 | 1,133 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 WA * 7 |
ソースコード
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')