結果

問題 No.2393 Bit Grid Connected Component
ユーザー nikoro256nikoro256
提出日時 2023-07-28 21:49:34
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 287 bytes
コンパイル時間 658 ms
コンパイル使用メモリ 82,572 KB
実行使用メモリ 77,100 KB
最終ジャッジ日時 2024-04-16 05:42:42
合計ジャッジ時間 2,282 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
51,756 KB
testcase_01 AC 40 ms
53,164 KB
testcase_02 AC 38 ms
52,556 KB
testcase_03 AC 38 ms
53,968 KB
testcase_04 AC 38 ms
52,652 KB
testcase_05 AC 39 ms
53,444 KB
testcase_06 AC 38 ms
53,412 KB
testcase_07 AC 38 ms
52,332 KB
testcase_08 AC 38 ms
52,812 KB
testcase_09 AC 39 ms
52,796 KB
testcase_10 AC 39 ms
52,932 KB
testcase_11 AC 39 ms
52,080 KB
testcase_12 AC 40 ms
52,584 KB
testcase_13 RE -
testcase_14 AC 103 ms
77,100 KB
testcase_15 AC 110 ms
76,804 KB
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

T=int(input())
exp=[2**i for i in range(60)]
exp2=exp[::]
for i in range(1,60):
    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