Submission #918561

#TimeUsernameProblemLanguageResultExecution timeMemory
918561vjudge1Coins (IOI17_coins)C++17
100 / 100
8 ms1616 KiB
#include "coins.h" #include <bits/stdc++.h> using namespace std; #define db long double #define ll long long #define pii pair<int, int> #define pll pair<ll, ll> #define vi vector<int> #define vl vector<ll> #define vii vector<pii> #define vll vector<pll> // #define endl '\n' #define all(x) x.begin(), x.end() #define fastio\ ios_base::sync_with_stdio(0);\ cin.tie(0);\ cout.tie(0)\ vector<int> coin_flips(std::vector<int> b, int c) { std::vector<int> flips(1); unsigned ll xr = c; for(int i = 0; i < 64; i++){ xr ^= i * b[i]; } flips[0] = xr; return flips; } int find_coin(std::vector<int> b) { unsigned ll xr = 0; for(int i = 0; i < 64; i++){ xr ^= i * b[i]; } return xr; }
#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...