結果
| 問題 |
No.2393 Bit Grid Connected Component
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-07-28 21:33:04 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 221 ms / 2,000 ms |
| コード長 | 353 bytes |
| コンパイル時間 | 1,788 ms |
| コンパイル使用メモリ | 165,776 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-06 17:49:40 |
| 合計ジャッジ時間 | 3,179 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 20 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(void) {
int t;
cin >> t;
while(t--){
long long x;
cin >> x;
int y;
cin >> y;
for(int i=y+1;i<=60;++i){
if((x>>i)%2==0){
cout << (1LL<<i)-1 << endl;
break;
}
}
}
return 0;
}