結果
問題 |
No.683 Two Operations No.3
|
ユーザー |
![]() |
提出日時 | 2018-05-11 22:39:37 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
MLE
|
実行時間 | - |
コード長 | 312 bytes |
コンパイル時間 | 131 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 818,304 KB |
最終ジャッジ日時 | 2024-06-28 08:46:34 |
合計ジャッジ時間 | 3,261 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 MLE * 1 -- * 11 |
ソースコード
import sys sys.setrecursionlimit(10**7) X,Y = map(int,input().split()) def dfs(x,y): if x == y == 0: return True if x%2 and y%2: return False if x%2: return dfs(x-1,y//2) if y%2: return dfs(x//2,y-1) return dfs(x-1,y//2) or dfs(x//2,y-1) print('Yes' if dfs(X,Y) else 'No')