| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1141507 | sopaconk | Coins (IOI17_coins) | C++20 | 5 ms | 584 KiB |
#include "coins.h"
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
using lli=long long int;
#define deb(x) cout<<#x<<": "<<x<<endl;
#define endl '\n'
std::vector<int> coin_flips(std::vector<int> b, int c) {
vector<int> ans;
ans.pb(7);
for(int i=0; i<6; ++i){
if(c%2!=b[i])ans.pb(i);
c/=2;
}
return ans;
}
int find_coin(std::vector<int> b) {
int ans=0;
int pow=1;
for(int i=0; i<6; ++i){
if(b[i]) ans+=pow;
pow*=2;
}
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... | ||||
