# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
251132 | kshitij_sodani | Coins (IOI17_coins) | C++14 | 19 ms | 1836 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 <bits/stdc++.h>
using namespace std;
typedef int64_t llo;
#define mp make_pair
#define pb push_back
#define a first
#define b second
#include "coins.h"
std::vector<int> coin_flips(std::vector<int> b, int c) {
int val=0;
for(int i=0;i<64;i++){
if(b[i]){
val=val^i;
}
}
for(int i=0;i<64;i++){
if((val^i)==c){
return {i};
}
}
// return flips;
}
int find_coin(std::vector<int> b) {
int val=0;
for(int i=0;i<64;i++){
if(b[i]){
val=val^i;
}
}
return val;
}
Compilation message (stderr)
# | 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... |