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

#TimeUsernameProblemLanguageResultExecution timeMemory
251132kshitij_sodaniCoins (IOI17_coins)C++14
100 / 100
19 ms1836 KiB
#include <bits/stdc++.h> using namespace std; typedef int64_t llo; #define mp make_pair #define pb push_back #define a first #define b second #include "coins.h" std::vector<int> coin_flips(std::vector<int> b, int c) { int val=0; for(int i=0;i<64;i++){ if(b[i]){ val=val^i; } } for(int i=0;i<64;i++){ if((val^i)==c){ return {i}; } } // return flips; } int find_coin(std::vector<int> b) { int val=0; for(int i=0;i<64;i++){ if(b[i]){ val=val^i; } } return val; }

Compilation message (stderr)

coins.cpp: In function 'std::vector<int> coin_flips(std::vector<int>, int)':
coins.cpp:24:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
#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...