結果
問題 |
No.1957 Xor Min
|
ユーザー |
![]() |
提出日時 | 2022-05-27 21:23:09 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 205 bytes |
コンパイル時間 | 1,735 ms |
コンパイル使用メモリ | 166,656 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-20 15:24:20 |
合計ジャッジ時間 | 2,106 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 WA * 10 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define int long long signed main(){ int A,B; cin>>A>>B; int m = max(A,B); int ans = 1; while(m >= ans*2) ans*=2; cout<<ans-1<<endl; }