結果
| 問題 |
No.2393 Bit Grid Connected Component
|
| コンテスト | |
| ユーザー |
mattu34
|
| 提出日時 | 2023-09-04 23:59:20 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 310 ms / 2,000 ms |
| コード長 | 245 bytes |
| コンパイル時間 | 511 ms |
| コンパイル使用メモリ | 82,464 KB |
| 実行使用メモリ | 77,440 KB |
| 最終ジャッジ日時 | 2024-06-22 21:12:21 |
| 合計ジャッジ時間 | 3,981 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 20 |
ソースコード
from collections import *
import heapq
import bisect
INF = float("inf")
T = int(input())
for _ in range(T):
x, y = map(int, input().split())
for i in range(y, 61):
if (x >> i) & 1 == 0:
break
print((1 << i) - 1)
mattu34