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

#TimeUsernameProblemLanguageResultExecution timeMemory
767189aaron_dcoderCoins (IOI17_coins)C++17
100 / 100
7 ms1556 KiB
#include "coins.h" #include <bits/stdc++.h> using namespace std; #define dbg(TXTMSG) cerr << "\n" << TXTMSG #define dbgv(VARN) cerr << "\n" << #VARN << " = "<<VARN << ", line: " << __LINE__ << "\n" using ll = long long; vector<int> coin_flips(vector<int> b, int c) { int totxor = 0; for (int i = 0; i < 64; i++) { if (b[i] == 1) { totxor ^= i; } } vector<int> outp = {totxor^c,}; return outp; } int find_coin(vector<int> b) { int totxor = 0; for (int i = 0; i < 64; i++) { if (b[i] == 1) { totxor ^= i; } } return totxor; }
#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...