結果

問題 No.2393 Bit Grid Connected Component
ユーザー 👑 p-adicp-adic
提出日時 2023-07-21 17:29:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 314 ms / 2,000 ms
コード長 121 bytes
コンパイル時間 271 ms
コンパイル使用メモリ 81,812 KB
実行使用メモリ 76,516 KB
最終ジャッジ日時 2023-10-21 17:58:55
合計ジャッジ時間 3,015 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
53,560 KB
testcase_01 AC 35 ms
53,560 KB
testcase_02 AC 35 ms
53,560 KB
testcase_03 AC 35 ms
53,560 KB
testcase_04 AC 34 ms
53,560 KB
testcase_05 AC 34 ms
53,560 KB
testcase_06 AC 35 ms
53,560 KB
testcase_07 AC 35 ms
53,560 KB
testcase_08 AC 35 ms
53,560 KB
testcase_09 AC 36 ms
53,560 KB
testcase_10 AC 36 ms
53,560 KB
testcase_11 AC 35 ms
53,560 KB
testcase_12 AC 37 ms
53,560 KB
testcase_13 AC 37 ms
53,560 KB
testcase_14 AC 72 ms
72,964 KB
testcase_15 AC 75 ms
72,964 KB
testcase_16 AC 149 ms
76,472 KB
testcase_17 AC 297 ms
76,516 KB
testcase_18 AC 314 ms
76,316 KB
testcase_19 AC 305 ms
76,004 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

I=input
for t in range(int(I())):
	x,y=map(int,I().split())
	d=y
	while d<60:
		if x>>d&1<1:break
		d+=1
	print((1<<d)-1)
0