Submission #974149

#TimeUsernameProblemLanguageResultExecution timeMemory
974149hirayuu_ojCoins (IOI17_coins)C++17
100 / 100
7 ms1700 KiB
#include "coins.h" #include<bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0; i<n; i++) std::vector<int> coin_flips(std::vector<int> b, int c) { std::vector<int> flips(1); int num=0; rep(i,64){ if(b[i])num^=i; } flips[0]=c^num; return flips; } int find_coin(std::vector<int> b) { int num=0; rep(i,64){ if(b[i])num^=i; } return num; }
#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...