結果
問題 |
No.2393 Bit Grid Connected Component
|
ユーザー |
|
提出日時 | 2023-07-29 00:20:53 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 240 ms / 2,000 ms |
コード長 | 247 bytes |
コンパイル時間 | 2,102 ms |
コンパイル使用メモリ | 193,064 KB |
最終ジャッジ日時 | 2025-02-15 20:48:08 |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 20 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; void solve() { ll x; int y; cin >> x >> y; while ((x >> y) & 1) { y ++; } cout << (1ll << y) - 1 << endl; } int main () { int T; cin >> T; while (T --) { solve(); } }