CARVIEW |
Select Language
HTTP/2 200
date: Mon, 13 Oct 2025 03:23:57 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=4b3bf6942f823f0a513a7fc972d62a68c38f50e073bd5eebf8964d0d05c970a6a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22yfxtI87dn5pSZbVtzY2tLMl3S-4siClZ%22%3B%7D; HttpOnly; Path=/
cf-ray: 98dbb8a08cdec1d2-BLR
#include <iostream>#include <iomanip>#include <vector>#include <string># - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- #include <vector>
- #include <string>
- #include <queue>
- #include <map>
- #include <set>
- #include <string>
- #include <algorithm>
- #include <cmath>
- #include <unordered_map>
- #include <unordered_set>
- #include <bits/stdc++.h>
- using namespace std;
- #define ll long long
- #define nl endl
- #define cy cout << "YES\n"
- #define cn cout << "NO\n"
- #define sz s.size()
- #define allv v.begin(), v.end()
- void sherry()
- {
- ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);
- #ifndef ONLINE_JUDGE
- freopen("input.txt", "r", stdin), freopen("output.txt", "w", stdout);
- #endif
- }
- void solve()
- {
- ll a, b;
- cin >> a >> b;
- ll c = a, x = 0;
- for (int i = 0; i < a; i++)
- {
- x ^= i;
- }
- if (x == b)
- {
- cout << c << nl;
- return;
- }
- x = x ^ b;
- if (x == a)
- c++;
- cout << c + 1 << nl;
- }
- int main()
- {
- sherry();
- int t;
- cin >> t;
- while (t--)
- {
- solve();
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
-
💎 ChangeNOW Exploit
JavaScript | 3 sec ago | 0.24 KB
-
🚀 Swapzone +37% glitch
JavaScript | 13 sec ago | 0.24 KB
-
🚨 Free Crypto Method 🚨
JavaScript | 23 sec ago | 0.24 KB
-
💡 EASY MONEY GUIDE ✅ Working
JavaScript | 32 sec ago | 0.24 KB
-
🔥 Exchange profit method
JavaScript | 41 sec ago | 0.24 KB
-
📝 MAKE $2500 IN 15 MIN ✅ Working
JavaScript | 51 sec ago | 0.24 KB
-
⚡ Crypto Swap Glitch ✅ Working ⚡
JavaScript | 1 min ago | 0.24 KB
-
💡 Instant BTC Profit Method ✅ Working
JavaScript | 1 min ago | 0.24 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand