結果

問題 No.2393 Bit Grid Connected Component
ユーザー hiro1729hiro1729
提出日時 2023-07-21 16:42:18
言語 PyPy3
(7.3.15)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 173 bytes
コンパイル時間 289 ms
コンパイル使用メモリ 81,684 KB
実行使用メモリ 75,908 KB
最終ジャッジ日時 2023-10-21 17:25:39
合計ジャッジ時間 2,879 ms
ジャッジサーバーID
(参考情報)
judge12 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,420 KB
testcase_01 AC 37 ms
53,420 KB
testcase_02 AC 37 ms
53,420 KB
testcase_03 AC 38 ms
53,420 KB
testcase_04 AC 38 ms
53,420 KB
testcase_05 AC 38 ms
53,420 KB
testcase_06 AC 38 ms
53,420 KB
testcase_07 AC 37 ms
53,420 KB
testcase_08 AC 37 ms
53,420 KB
testcase_09 AC 38 ms
53,420 KB
testcase_10 AC 38 ms
53,420 KB
testcase_11 AC 38 ms
53,420 KB
testcase_12 AC 39 ms
53,420 KB
testcase_13 WA -
testcase_14 AC 70 ms
68,688 KB
testcase_15 AC 71 ms
70,732 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