結果
問題 |
No.2393 Bit Grid Connected Component
|
ユーザー |
|
提出日時 | 2023-07-28 21:32:24 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 351 bytes |
コンパイル時間 | 1,608 ms |
コンパイル使用メモリ | 165,780 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-06 17:47:28 |
合計ジャッジ時間 | 3,328 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 13 WA * 7 |
ソースコード
#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 << (1<<i)-1 << endl; break; } } } return 0; }