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

#TimeUsernameProblemLanguageResultExecution timeMemory
570367JomnoiCoins (IOI17_coins)C++17
100 / 100
12 ms1552 KiB
#include <bits/stdc++.h> #include "coins.h" using namespace std; vector <int> coin_flips(vector <int> b, int c) { vector <int> flips; int X = 0; for(int i = 0; i < 64; i++) { if(b[i] == 1) { X ^= i; } } X ^= c; flips.push_back(X); return flips; } int find_coin(vector <int> b) { int C = 0; for(int i = 0; i < 64; i++) { if(b[i] == 1) { C ^= i; } } return C; }
#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...