結果
| 問題 | No.2393 Bit Grid Connected Component |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-07-28 22:18:10 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 304 ms / 2,000 ms |
| + 486µs | |
| コード長 | 430 bytes |
| 記録 | |
| コンパイル時間 | 76 ms |
| コンパイル使用メモリ | 80,896 KB |
| 実行使用メモリ | 88,448 KB |
| 最終ジャッジ日時 | 2026-09-11 06:06:28 |
| 合計ジャッジ時間 | 4,019 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 20 |
ソースコード
import collections,sys,math,functools,operator,itertools,bisect,heapq,decimal,string,time,random
#sys.setrecursionlimit(10**9)
t = int(input())
for i in range(t):
x,y = map(int,input().split())
for j in range(60):
if j < y and ((x >> j) & 1) == 0:
x += 2**j
temp = 0
for j in range(60):
if ((x >> j) & 1) == 1:
temp += 2**j
else:
break
print(temp)