結果
| 問題 | No.2393 Bit Grid Connected Component |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-07-28 21:57:42 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 318 ms / 2,000 ms |
| コード長 | 207 bytes |
| 記録 | |
| コンパイル時間 | 317 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 81,724 KB |
| 最終ジャッジ日時 | 2026-04-23 02:21:20 |
| 合計ジャッジ時間 | 2,924 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 20 |
ソースコード
t=int(input())
def f(a,b):
a=str(bin(a))
key=-b-1
while a[key]=="1":
key-=1
key+=1
key*=-1
print(2**key-1)
for i in range(t):
a,b=map(int,input().split())
f(a,b)