結果

問題 No.2393 Bit Grid Connected Component
ユーザー hiro1729hiro1729
提出日時 2023-07-21 14:27:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 173 bytes
コンパイル時間 141 ms
コンパイル使用メモリ 11,800 KB
実行使用メモリ 10,084 KB
最終ジャッジ日時 2023-10-21 17:25:46
合計ジャッジ時間 6,146 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,068 KB
testcase_01 AC 29 ms
10,068 KB
testcase_02 AC 29 ms
10,068 KB
testcase_03 AC 28 ms
10,068 KB
testcase_04 AC 27 ms
10,068 KB
testcase_05 AC 27 ms
10,068 KB
testcase_06 AC 28 ms
10,068 KB
testcase_07 AC 29 ms
10,068 KB
testcase_08 AC 28 ms
10,068 KB
testcase_09 AC 27 ms
10,068 KB
testcase_10 AC 36 ms
10,068 KB
testcase_11 AC 28 ms
10,068 KB
testcase_12 AC 27 ms
10,068 KB
testcase_13 WA -
testcase_14 AC 66 ms
10,084 KB
testcase_15 AC 77 ms
10,084 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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