結果

問題 No.2393 Bit Grid Connected Component
ユーザー loop0919loop0919
提出日時 2023-09-30 19:16:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 357 ms / 2,000 ms
コード長 173 bytes
コンパイル時間 252 ms
コンパイル使用メモリ 86,660 KB
実行使用メモリ 78,352 KB
最終ジャッジ日時 2023-09-30 19:16:53
合計ジャッジ時間 4,027 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,364 KB
testcase_01 AC 71 ms
71,400 KB
testcase_02 AC 72 ms
70,924 KB
testcase_03 AC 72 ms
71,140 KB
testcase_04 AC 71 ms
71,280 KB
testcase_05 AC 71 ms
71,304 KB
testcase_06 AC 72 ms
71,160 KB
testcase_07 AC 74 ms
71,172 KB
testcase_08 AC 73 ms
71,248 KB
testcase_09 AC 71 ms
71,304 KB
testcase_10 AC 69 ms
71,272 KB
testcase_11 AC 72 ms
71,084 KB
testcase_12 AC 71 ms
71,300 KB
testcase_13 AC 72 ms
71,008 KB
testcase_14 AC 126 ms
78,072 KB
testcase_15 AC 129 ms
77,716 KB
testcase_16 AC 175 ms
77,580 KB
testcase_17 AC 351 ms
77,436 KB
testcase_18 AC 357 ms
78,152 KB
testcase_19 AC 338 ms
78,352 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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