結果

問題 No.2533 A⇒B問題
コンテスト
ユーザー KDKJ
提出日時 2023-11-29 15:21:49
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 527 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 331 ms
コンパイル使用メモリ 85,632 KB
実行使用メモリ 54,400 KB
最終ジャッジ日時 2026-04-13 15:39:41
合計ジャッジ時間 2,463 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

from heapq import heappush, heappop, heapify
import sys
from collections import defaultdict, deque
from math import ceil, floor, sqrt, factorial, gcd
from itertools import permutations, combinations
from bisect import bisect_left, bisect_right
sys.setrecursionlimit(10**6)
# input = sys.stdin.readline


a, b = map(int, input().split())
A = bin(a)[2:]
B = bin(b)[2:]
# print(A, B)
l = len(B)
for i in range(len(A)):
    if A[i] == "1":
        if i >= l or B[i] != "1":
            print("No")
            exit()

print("Yes")
0