結果
| 問題 | No.2393 Bit Grid Connected Component |
| コンテスト | |
| ユーザー |
mattu34
|
| 提出日時 | 2023-09-04 23:59:20 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 249 ms / 2,000 ms |
| + 116µs | |
| コード長 | 245 bytes |
| 記録 | |
| コンパイル時間 | 230 ms |
| コンパイル使用メモリ | 96,112 KB |
| 実行使用メモリ | 85,888 KB |
| 最終ジャッジ日時 | 2026-07-27 09:33:38 |
| 合計ジャッジ時間 | 4,323 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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