#include "coins.h"
#include<bits/stdc++.h>
using namespace std;
std::vector<int> coin_flips(std::vector<int> b, int c) {
vector<int> flips(1);
for(int i=0;i<64;i++) if(b[i]) c^=i;
flips[0]=c;
return flips;
}
int find_coin(std::vector<int> b) {
int x=0;
for(int i=0;i<64;i++) if(b[i]) x^=i;
return x;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
6 ms |
1684 KB |
Output is correct |
2 |
Correct |
8 ms |
1684 KB |
Output is correct |
3 |
Correct |
6 ms |
1684 KB |
Output is correct |
4 |
Correct |
7 ms |
1692 KB |
Output is correct |
5 |
Correct |
6 ms |
1644 KB |
Output is correct |
6 |
Correct |
6 ms |
1688 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
6 ms |
1684 KB |
Output is correct |
2 |
Correct |
8 ms |
1684 KB |
Output is correct |
3 |
Correct |
6 ms |
1684 KB |
Output is correct |
4 |
Correct |
7 ms |
1692 KB |
Output is correct |
5 |
Correct |
6 ms |
1644 KB |
Output is correct |
6 |
Correct |
6 ms |
1688 KB |
Output is correct |
7 |
Correct |
7 ms |
1688 KB |
Output is correct |
8 |
Correct |
7 ms |
1680 KB |
Output is correct |
9 |
Correct |
9 ms |
1680 KB |
Output is correct |
10 |
Correct |
7 ms |
1688 KB |
Output is correct |
11 |
Correct |
6 ms |
1692 KB |
Output is correct |
12 |
Correct |
8 ms |
1668 KB |
Output is correct |
13 |
Correct |
7 ms |
1692 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
7 ms |
1684 KB |
Output is correct |
2 |
Correct |
7 ms |
1688 KB |
Output is correct |
3 |
Correct |
6 ms |
1696 KB |
Output is correct |
4 |
Correct |
6 ms |
1676 KB |
Output is correct |
5 |
Correct |
6 ms |
1688 KB |
Output is correct |
6 |
Correct |
6 ms |
1680 KB |
Output is correct |
7 |
Correct |
6 ms |
1688 KB |
Output is correct |
8 |
Correct |
6 ms |
1692 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
6 ms |
1688 KB |
Output is correct |
2 |
Correct |
6 ms |
1656 KB |
Output is correct |
3 |
Correct |
6 ms |
1696 KB |
Output is correct |
4 |
Correct |
7 ms |
1692 KB |
Output is correct |
5 |
Correct |
8 ms |
1688 KB |
Output is correct |
6 |
Correct |
7 ms |
1668 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
6 ms |
1684 KB |
Output is correct |
2 |
Correct |
8 ms |
1684 KB |
Output is correct |
3 |
Correct |
6 ms |
1684 KB |
Output is correct |
4 |
Correct |
7 ms |
1692 KB |
Output is correct |
5 |
Correct |
6 ms |
1644 KB |
Output is correct |
6 |
Correct |
6 ms |
1688 KB |
Output is correct |
7 |
Correct |
7 ms |
1688 KB |
Output is correct |
8 |
Correct |
7 ms |
1680 KB |
Output is correct |
9 |
Correct |
9 ms |
1680 KB |
Output is correct |
10 |
Correct |
7 ms |
1688 KB |
Output is correct |
11 |
Correct |
6 ms |
1692 KB |
Output is correct |
12 |
Correct |
8 ms |
1668 KB |
Output is correct |
13 |
Correct |
7 ms |
1692 KB |
Output is correct |
14 |
Correct |
7 ms |
1624 KB |
Output is correct |
15 |
Correct |
7 ms |
1688 KB |
Output is correct |
16 |
Correct |
6 ms |
1652 KB |
Output is correct |
17 |
Correct |
9 ms |
1688 KB |
Output is correct |
18 |
Correct |
7 ms |
1684 KB |
Output is correct |
19 |
Correct |
8 ms |
1688 KB |
Output is correct |
20 |
Correct |
6 ms |
1700 KB |
Output is correct |
21 |
Correct |
7 ms |
1704 KB |
Output is correct |
22 |
Correct |
6 ms |
1808 KB |
Output is correct |
23 |
Correct |
6 ms |
1684 KB |
Output is correct |
24 |
Correct |
6 ms |
1688 KB |
Output is correct |
25 |
Correct |
6 ms |
1680 KB |
Output is correct |