結果
問題 |
No.1957 Xor Min
|
ユーザー |
|
提出日時 | 2022-06-09 10:33:37 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 434 bytes |
コンパイル時間 | 599 ms |
コンパイル使用メモリ | 72,792 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-21 05:29:06 |
合計ジャッジ時間 | 1,553 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 WA * 11 |
ソースコード
#include <iostream> #include <vector> #include <string> #include <algorithm> #include <cmath> #define rep(i,n) for(i=0; i<n; ++i) #define in(a) cin >> a #define out(a,b) cout << a << b using namespace std; using lint = long long; int main(void){ int i, j; int n, m; in(n); in(m); int x = min(n,m), r = 1; while(1){ if(r-1<=x&&x<r*2-1) break; r*=2; } out(r-1,endl); return 0; }