(UPD: 2024-12-04 14:48 UTC) Judge is not working due to Cloudflare incident. (URL) We can do nothing about it, sorry. After the incident is resolved, we will grade all submissions.

Submission #486340

#TimeUsernameProblemLanguageResultExecution timeMemory
486340PiejanVDCCoins (IOI17_coins)C++17
100 / 100
9 ms1528 KiB
#include "coins.h" #include <bits/stdc++.h> using namespace std; void print(vector<int>v) { for(int i = 0 ; i < 8 ; i++) { for(int j = 0 ; j < 8 ; j++) { cout << v[8*i+j]; } cout << "\n"; } } vector<int> coin_flips(vector<int>b, int c) { const int n = 64; int mask = 0; for(int i = 0 ; i < n ; i++) { if(b[i]&1) mask^=i; } int need=0; if(mask != c) { //cout << mask << " "; need = mask^c; } return {need}; } int find_coin(vector<int> b) { const int n = 64; //print(b); int mask = 0; for(int i = 0 ; i < n ; i++) { if(b[i]&1) mask^=i; } //return mask; //cout << " -- " << mask << " "; return mask; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...