結果

問題 No.2393 Bit Grid Connected Component
ユーザー nikoro256nikoro256
提出日時 2023-07-28 21:50:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 393 ms / 2,000 ms
コード長 287 bytes
コンパイル時間 270 ms
コンパイル使用メモリ 82,392 KB
実行使用メモリ 77,272 KB
最終ジャッジ日時 2024-04-16 05:43:47
合計ジャッジ時間 3,498 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
53,008 KB
testcase_01 AC 40 ms
52,936 KB
testcase_02 AC 42 ms
52,280 KB
testcase_03 AC 40 ms
52,944 KB
testcase_04 AC 41 ms
52,204 KB
testcase_05 AC 41 ms
52,240 KB
testcase_06 AC 40 ms
53,376 KB
testcase_07 AC 41 ms
53,152 KB
testcase_08 AC 41 ms
52,804 KB
testcase_09 AC 40 ms
52,880 KB
testcase_10 AC 41 ms
52,680 KB
testcase_11 AC 42 ms
52,124 KB
testcase_12 AC 42 ms
52,416 KB
testcase_13 AC 44 ms
59,388 KB
testcase_14 AC 107 ms
76,936 KB
testcase_15 AC 113 ms
77,044 KB
testcase_16 AC 181 ms
76,544 KB
testcase_17 AC 393 ms
76,892 KB
testcase_18 AC 391 ms
77,148 KB
testcase_19 AC 378 ms
77,272 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T=int(input())
exp=[2**i for i in range(61)]
exp2=exp[::]
for i in range(1,61):
    exp2[i]+=exp2[i-1]
for _ in range(T):
    x,y=map(int,input().split())
    dat=[0 for _ in range(60)]
    for i in range(y+1,61):
        if x//exp[i]%2==0:
            break
    i-=1
    print(exp2[i]) 
0