結果
問題 | No.2533 A⇒B問題 |
ユーザー |
![]() |
提出日時 | 2023-11-29 15:23:31 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 2,000 ms |
コード長 | 551 bytes |
コンパイル時間 | 239 ms |
コンパイル使用メモリ | 82,364 KB |
実行使用メモリ | 54,656 KB |
最終ジャッジ日時 | 2024-09-26 13:24:51 |
合計ジャッジ時間 | 1,915 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
ソースコード
from heapq import heappush, heappop, heapifyimport sysfrom collections import defaultdict, dequefrom math import ceil, floor, sqrt, factorial, gcdfrom itertools import permutations, combinationsfrom bisect import bisect_left, bisect_rightsys.setrecursionlimit(10**6)# input = sys.stdin.readlinea, b = map(int, input().split())A = bin(a)[2:]B = bin(b)[2:]# print(A, B)A = A[::-1]B = B[::-1]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")