Submission #1050807

#TimeUsernameProblemLanguageResultExecution timeMemory
1050807MercubytheFirstHow to Avoid Disqualification in 75 Easy Steps (CEOI23_avoid)C++17
10 / 100
1 ms344 KiB
#include "avoid.h" #include <bits/stdc++.h> using namespace std; std::pair<int, int> scout(int R, int H) { for(int b = 0; b < 10; ++b) { vector<int> curset; for(int i = 1; i <= 1000; ++i) { if(1 << b & i) { curset.push_back(i); } } send(curset); } vector<int> results = wait(); int ans = 0; for(int b = 0; b < 10; ++b) { if(results[b]) { ans |= 1 << b; } } return {ans, 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...