| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 534588 | jk410 | Coins (IOI17_coins) | C++17 | 13 ms | 1544 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "coins.h"
#include <bits/stdc++.h>
using namespace std;
vector<int> coin_flips(vector<int> b,int c) {
vector<int> flips(1);
int cur=0;
for (int i=0; i<64; i++){
if (!b[i])
continue;
for (int j=0; j<6; j++){
if (i&(1<<j))
cur^=(1<<j);
}
}
flips[0]=(c^cur);
return flips;
}
int find_coin(vector<int> b) {
vector<int> flips(1);
int cur=0;
for (int i=0; i<64; i++){
if (!b[i])
continue;
for (int j=0; j<6; j++){
if (i&(1<<j))
cur^=(1<<j);
}
}
return cur;
}
| # | 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... | ||||
