(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 #534588

#TimeUsernameProblemLanguageResultExecution timeMemory
534588jk410Coins (IOI17_coins)C++17
100 / 100
13 ms1544 KiB
#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 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...