結果

問題 No.2393 Bit Grid Connected Component
ユーザー suisensuisen
提出日時 2023-07-28 22:38:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 519 ms / 2,000 ms
コード長 103 bytes
コンパイル時間 184 ms
コンパイル使用メモリ 81,900 KB
実行使用メモリ 77,116 KB
最終ジャッジ日時 2024-04-16 06:35:44
合計ジャッジ時間 3,784 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
52,568 KB
testcase_01 AC 39 ms
52,548 KB
testcase_02 AC 40 ms
52,396 KB
testcase_03 AC 39 ms
51,992 KB
testcase_04 AC 40 ms
53,140 KB
testcase_05 AC 39 ms
52,744 KB
testcase_06 AC 39 ms
51,884 KB
testcase_07 AC 39 ms
52,444 KB
testcase_08 AC 39 ms
52,620 KB
testcase_09 AC 40 ms
52,544 KB
testcase_10 AC 40 ms
52,452 KB
testcase_11 AC 40 ms
52,812 KB
testcase_12 AC 40 ms
51,996 KB
testcase_13 AC 41 ms
52,832 KB
testcase_14 AC 97 ms
76,524 KB
testcase_15 AC 102 ms
76,448 KB
testcase_16 AC 204 ms
76,820 KB
testcase_17 AC 502 ms
77,072 KB
testcase_18 AC 503 ms
76,644 KB
testcase_19 AC 519 ms
77,116 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

for _ in range(int(input())):x,y=map(int,input().split());print(2**bin((x|2**y-1)+1)[::-1].find('1')-1)
0