結果

問題 No.2393 Bit Grid Connected Component
ユーザー loop0919loop0919
提出日時 2023-09-30 19:15:50
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 173 bytes
コンパイル時間 951 ms
コンパイル使用メモリ 86,516 KB
実行使用メモリ 78,800 KB
最終ジャッジ日時 2023-09-30 19:15:57
合計ジャッジ時間 4,741 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,204 KB
testcase_01 AC 71 ms
71,052 KB
testcase_02 AC 73 ms
71,048 KB
testcase_03 AC 75 ms
71,100 KB
testcase_04 AC 71 ms
71,316 KB
testcase_05 AC 71 ms
71,324 KB
testcase_06 AC 73 ms
71,092 KB
testcase_07 AC 71 ms
71,092 KB
testcase_08 AC 79 ms
71,148 KB
testcase_09 AC 71 ms
71,048 KB
testcase_10 AC 72 ms
71,212 KB
testcase_11 AC 71 ms
70,932 KB
testcase_12 AC 72 ms
70,920 KB
testcase_13 WA -
testcase_14 AC 142 ms
77,544 KB
testcase_15 AC 131 ms
77,336 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())

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