結果
| 問題 |
No.2533 A⇒B問題
|
| コンテスト | |
| ユーザー |
KDKJ
|
| 提出日時 | 2023-11-29 15:21:49 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 527 bytes |
| コンパイル時間 | 345 ms |
| コンパイル使用メモリ | 82,300 KB |
| 実行使用メモリ | 55,844 KB |
| 最終ジャッジ日時 | 2024-09-26 13:24:44 |
| 合計ジャッジ時間 | 2,242 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 WA * 3 |
ソースコード
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")
KDKJ