Submission #40388

#TimeUsernameProblemLanguageResultExecution timeMemory
40388model_codeCoins (IOI17_coins)C++11
25 / 100
12 ms1808 KiB
#include <bits/stdc++.h> #include "coins.h" using namespace std; vector<int> coin_flips(vector<int> a, int x){ vector<int> ans; ans.push_back(63); for(int i = 0; i < 6; ++ i){ int bit = (x >> i) & 1; if(bit != a[i]) ans.push_back(i); } return ans; } int find_coin(vector<int> a){ int ans = 0; for(int i = 0; i < 6; ++ i) if(a[i]) ans ^= (1 << i); return ans; }

Compilation message (stderr)

grader.cpp: In function 'void pass2()':
grader.cpp:100:7: warning: unused variable 'secret' [-Wunused-variable]
  char secret[1000];
       ^~~~~~
#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...