結果
| 問題 |
No.2393 Bit Grid Connected Component
|
| コンテスト | |
| ユーザー |
とりゐ
|
| 提出日時 | 2023-07-28 21:57:40 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 118 ms / 2,000 ms |
| コード長 | 198 bytes |
| コンパイル時間 | 395 ms |
| コンパイル使用メモリ | 82,440 KB |
| 実行使用メモリ | 76,504 KB |
| 最終ジャッジ日時 | 2024-10-06 18:41:01 |
| 合計ジャッジ時間 | 2,320 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 20 |
ソースコード
from sys import stdin
input=lambda :stdin.readline()[:-1]
def solve():
x,y=map(int,input().split())
while (x>>(y+1))&1:
y+=1
print((1<<(y+1))-1)
for _ in range(int(input())):
solve()
とりゐ