結果
問題 |
No.2393 Bit Grid Connected Component
|
ユーザー |
|
提出日時 | 2024-09-10 19:08:14 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 356 ms / 2,000 ms |
コード長 | 132 bytes |
コンパイル時間 | 354 ms |
コンパイル使用メモリ | 81,516 KB |
実行使用メモリ | 76,148 KB |
最終ジャッジ日時 | 2024-09-10 19:08:19 |
合計ジャッジ時間 | 4,668 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 20 |
ソースコード
t = int(input()) for i in range(t): x,y = map(int,input().split()) x >>= y while x & 1 == 1: x //= 2 y += 1 print(2**y-1)