| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1355835 | avahw | Coins (IOI17_coins) | C++20 | 3 ms | 580 KiB |
#include "coins.h"
#include <bits/stdc++.h>
using namespace std;
std::vector<int> coin_flips(std::vector<int> b, int c) {
std::vector<int> flips;
if(c == 0){
if(b[1] == 1){
flips.push_back(1);
}
else{
flips.push_back(0);
}
}
if(c == 1){
if(b[1] == 0){
flips.push_back(1);
}
else{
flips.push_back(0);
}
}
return flips;
}
int find_coin(std::vector<int> b) {
vector<int> e = {b[0], b[1]};
if(e[0] == 0 && e[1] == 0) return 0;
if(e[0] == 1 && e[1] == 0) return 0;
if(e[0] == 0 && e[1] == 1) return 1;
return 0;
}
Compilation message (stderr)
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
