結果
| 問題 | 
                            No.2393 Bit Grid Connected Component
                             | 
                    
| コンテスト | |
| ユーザー | 
                             nikoro256
                         | 
                    
| 提出日時 | 2023-07-28 21:49:34 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                RE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 287 bytes | 
| コンパイル時間 | 617 ms | 
| コンパイル使用メモリ | 81,852 KB | 
| 実行使用メモリ | 77,640 KB | 
| 最終ジャッジ日時 | 2024-10-06 18:24:03 | 
| 合計ジャッジ時間 | 2,658 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 15 RE * 5 | 
ソースコード
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]) 
            
            
            
        
            
nikoro256