# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1186823 | yoruonivamp | Coins (IOI17_coins) | C++20 | 0 ms | 0 KiB |
#include <bits/stdc++.h>
using namespace std;
int[] coin_flips(int[] b, int c){
c--;
b[c/8][c%8] = !b[c/8][c%8];
return b;
}
int find_coin(int[] b){
int cnt = 0;
for(int i = 0; i < 8; i++){
for(int j = 0; j < 8; j++){
if(b[i][j]) cout << i*8+j+1 << endl, return;
}
}
}