| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1186912 | JungPS | Coins (IOI17_coins) | C++20 | 5 ms | 584 KiB |
#include "coins.h"
using namespace std;
vector<int> coin_flips(vector<int> b, int c) {
vector<int> flips;
for(int i=0;i<8;++i){
int tmp=((c&(1<<i))==(1<<i));
if(tmp==1 && b[i]==0) flips.push_back(i);
if(tmp==0 && b[i]==1) flips.push_back(i);
}
if(flips.size()==0) flips.push_back(63);
return flips;
}
int find_coin(vector<int> b) {
int ans=0;
for(int i=0;i<8;++i){
if(b[i]){
ans+=(1<<i);
}
}
return ans;
}
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
