結果
| 問題 |
No.2393 Bit Grid Connected Component
|
| コンテスト | |
| ユーザー |
hitonanode
|
| 提出日時 | 2023-08-01 09:59:21 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 35 ms / 2,000 ms |
| コード長 | 291 bytes |
| コンパイル時間 | 683 ms |
| コンパイル使用メモリ | 77,920 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-11 01:59:58 |
| 合計ジャッジ時間 | 2,366 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 20 |
ソースコード
#include <iostream>
using namespace std;
int main() {
cin.tie(nullptr)->sync_with_stdio(false);
int T;
cin >> T;
while (T--) {
long long x;
int y;
cin >> x >> y;
while ((x >> (y + 1)) & 1) ++y;
cout << (2LL << y) - 1 << '\n';
}
}
hitonanode