結果
| 問題 | No.683 Two Operations No.3 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-10-10 10:35:46 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 366 bytes |
| 記録 | |
| コンパイル時間 | 279 ms |
| コンパイル使用メモリ | 81,904 KB |
| 実行使用メモリ | 79,804 KB |
| 最終ジャッジ日時 | 2024-09-14 04:52:18 |
| 合計ジャッジ時間 | 1,952 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 WA * 3 RE * 3 |
ソースコード
a,b=map(int,input().split())
def check(a,b):
if a%2==1 and b%2==1:
return False
elif a%2+b%2==1:
return True
else:
if a%4!=0 and b%4!=0:
return False
else:
if a%4==0:
check(a//2,b)
else:
check(a,b//2)
if check(a,b):
print("Yes")
else:
print("No")