Submission #995343

#TimeUsernameProblemLanguageResultExecution timeMemory
995343BorsCoins (IOI17_coins)C++17
0 / 100
7 ms1692 KiB
#include <bits/stdc++.h> #include "coins.h" using namespace std; #define repf(i,k,n) for(int i=k; i<n; i++) #define rep(i,n) for(int i=0; i<n; i++) #define all(v) v.begin(), v.end() typedef vector<int> vi; vi coin_flips(vi b, int c) { vi flips(1); int x=c; rep(i,x) if(b[i]) x^=i; flips[0]=x; return flips; } int find_coin(vi b) { int x=0; rep(i,x) if(b[i]) x^=i; return x; }
#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...