結果

問題 No.2393 Bit Grid Connected Component
ユーザー hiro1729
提出日時 2023-07-21 17:12:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 327 ms / 2,000 ms
コード長 114 bytes
コンパイル時間 255 ms
コンパイル使用メモリ 82,504 KB
実行使用メモリ 76,420 KB
最終ジャッジ日時 2024-09-21 18:57:32
合計ジャッジ時間 3,117 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())
for _ in range(T):
	x, y = map(int, input().split())
	x |= (1 << y) - 1
	print(x & (x ^ (x + 1)))
0