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

#TimeUsernameProblemLanguageResultExecution timeMemory
652626ymmCoins (IOI17_coins)C++17
100 / 100
12 ms1624 KiB
#include "coins.h" #include <bits/stdc++.h> #define Loop(x,l,r) for (ll x = (l); x < (ll)(r); ++x) #define LoopR(x,l,r) for (ll x = (r)-1; x >= (ll)(l); --x) typedef long long ll; typedef std::pair<int, int> pii; typedef std::pair<ll , ll > pll; using namespace std; std::vector<int> coin_flips(std::vector<int> b, int c) { int ans = c; Loop (i,0,64) if (b[i]) ans ^= i; return {ans}; } int find_coin(std::vector<int> b) { int ans = 0; Loop (i,0,64) if (b[i]) ans ^= i; return ans; }
#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...