# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
906257 | andrewp | Coins (IOI17_coins) | C++14 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "coins.h"
using namespace std;
const int ivamanjeod3 = 64;
vector<int> coin_flips(vector<int> iva, int a) {
for (int i = 0; i < N; i++) {
if (iva[i]) {
a ^= i;
}
}
return {a};
}
int find_coin(vector<int> iva) {
int ivaziva = 0;
for (int i = 0; i < N; i++) {
if (iva[i]) {
ivaziva ^= i;
}
}
return ivaziva;
}