| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1165521 | gustavo_d | Coins (IOI17_coins) | C++20 | 5 ms | 588 KiB |
#include "coins.h"
#include <bits/stdc++.h>
using namespace std;
vector<int> coin_flips(vector<int> b, int c) {
int totXor = 0;
for (int p=0; p<(int)b.size(); p++)
totXor ^= p * b[p];
// cout << c << ' ' << totXor << endl;
vector<int> flips(1, c ^ totXor);
return flips;
}
int find_coin(vector<int> b) {
int ans = 0;
for (int p=0; p<(int)b.size(); p++)
ans ^= p * b[p];
// cout << ans << endl;
return ans;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
