이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
//#include "grader.cpp"
#include "coins.h"
using namespace std;
std::vector<int> coin_flips(std::vector<int> b, int c)
{
int board = 0;
for (int pos=0; pos<64; pos++)
{
if (b[pos])
{
board = board ^ pos;
}
}
int change = board ^ c;
vector <int> nov = {change};
return nov;
}
int find_coin(std::vector<int> b) {
int board = 0;
for (int pos=0; pos<64; pos++)
{
if (b[pos])
{
board = board ^ pos;
}
}
return board;
}
/*
3
0
11101101
01000010
01011010
11110101
11000010
01011101
01000110
10111111
7
01110010
11110101
00000100
10110001
00010111
00110101
00001110
10101110
7
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
*/
# | 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... |