結果

問題 No.2393 Bit Grid Connected Component
ユーザー mattu34mattu34
提出日時 2023-09-04 23:59:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 385 ms / 2,000 ms
コード長 245 bytes
コンパイル時間 1,336 ms
コンパイル使用メモリ 86,592 KB
実行使用メモリ 78,496 KB
最終ジャッジ日時 2023-09-04 23:59:26
合計ジャッジ時間 5,760 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 93 ms
71,420 KB
testcase_01 AC 93 ms
71,528 KB
testcase_02 AC 94 ms
71,448 KB
testcase_03 AC 95 ms
71,452 KB
testcase_04 AC 91 ms
71,560 KB
testcase_05 AC 94 ms
71,068 KB
testcase_06 AC 95 ms
71,420 KB
testcase_07 AC 95 ms
71,520 KB
testcase_08 AC 96 ms
71,556 KB
testcase_09 AC 93 ms
71,224 KB
testcase_10 AC 94 ms
71,560 KB
testcase_11 AC 94 ms
71,576 KB
testcase_12 AC 96 ms
71,484 KB
testcase_13 AC 93 ms
71,424 KB
testcase_14 AC 155 ms
78,264 KB
testcase_15 AC 154 ms
77,968 KB
testcase_16 AC 197 ms
77,716 KB
testcase_17 AC 374 ms
78,360 KB
testcase_18 AC 385 ms
78,496 KB
testcase_19 AC 364 ms
77,776 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import *
import heapq
import bisect

INF = float("inf")

T = int(input())
for _ in range(T):
    x, y = map(int, input().split())
    for i in range(y, 61):
        if (x >> i) & 1 == 0:
            break
    print((1 << i) - 1)
0