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

#TimeUsernameProblemLanguageResultExecution timeMemory
433494KanaifuCoins (IOI17_coins)C++14
100 / 100
13 ms1524 KiB
#include <bits/stdc++.h> //#include "grader.cpp" #include "coins.h" using namespace std; std::vector<int> coin_flips(std::vector<int> b, int c) { int board = 0; for (int pos=0; pos<64; pos++) { if (b[pos]) { board = board ^ pos; } } int change = board ^ c; vector <int> nov = {change}; return nov; } int find_coin(std::vector<int> b) { int board = 0; for (int pos=0; pos<64; pos++) { if (b[pos]) { board = board ^ pos; } } return board; } /* 3 0 11101101 01000010 01011010 11110101 11000010 01011101 01000110 10111111 7 01110010 11110101 00000100 10110001 00010111 00110101 00001110 10101110 7 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 */
#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...