結果
問題 | No.1511 A ? B Problem |
ユーザー |
|
提出日時 | 2021-06-18 21:30:56 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 661 bytes |
コンパイル時間 | 1,354 ms |
コンパイル使用メモリ | 165,972 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-22 19:53:47 |
合計ジャッジ時間 | 2,085 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 14 |
ソースコード
// #include "bits/stdc++.h" using namespace std; #define pr1(a) for(auto b : a) cout << b << " ";cout << endl; #define pr2(a) for(auto b : a){for(auto c:b) cout << c << " ";cout << endl;} #define prc(...) for(auto b:{ __VA_ARGS__ }) cout << b << " ";cout << endl; void solve() { const long long mod=1000000007; long long a,b,val; cin >> a>>b; val=(a|b)-(a&b); cout<<val<<endl; } int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); #ifndef ONLINE_JUDGE stringstream in(R"(3 5 )"); //ans 291172003 std::cin.rdbuf(in.rdbuf()); #endif int tn = 1; //cin >> tn; while (tn--) solve(); }