(UPD: 2024-12-04 14:48 UTC) Judge is not working due to Cloudflare incident. (URL) We can do nothing about it, sorry. After the incident is resolved, we will grade all submissions.

Submission #829568

#TimeUsernameProblemLanguageResultExecution timeMemory
829568vqpahmadCoins (IOI17_coins)C++14
100 / 100
11 ms1552 KiB
#include "coins.h" #include <bits/stdc++.h> using namespace std; #define ll long long #define pii pair<int,int> #define F first #define S second #define endl '\n' #define pb push_back #define sz(a) (int)a.size() #define all(a) a.begin(),a.end() const int mod = 1e9 + 7; const int N = 1e6 + 15; const ll inf = 1e18; vector<int> coin_flips(vector<int> b, int c) { vector<int> flips(1); int n = 64; int val = 0; for (int i=0;i<n;i++){ if (b[i]) val ^= i; } val ^= c; flips[0] = val; return flips; } int find_coin(vector<int> b) { int ans = 0; for (int i=0;i<64;i++){ if (b[i]) ans ^= i; } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...