結果
| 問題 | No.2393 Bit Grid Connected Component |
| コンテスト | |
| ユーザー |
とりゐ
|
| 提出日時 | 2023-07-28 21:57:40 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 90 ms / 2,000 ms |
| コード長 | 198 bytes |
| 記録 | |
| コンパイル時間 | 171 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 81,172 KB |
| 最終ジャッジ日時 | 2026-04-23 02:20:42 |
| 合計ジャッジ時間 | 1,952 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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()
とりゐ