Submission #836058

#TimeUsernameProblemLanguageResultExecution timeMemory
836058unnickMinerals (JOI19_minerals)C++14
6 / 100
4 ms336 KiB
#include "minerals.h" #include <vector> using namespace std; void Solve(int N) { vector<bool> sv(N*2+1, false); for (int i = 1; i <= N*2; i++) { if (sv[i]) continue; Query(i); for (int j = i+1; j <= N*2; j++) { if (sv[j]) continue; if (Query(j) == 2) { Query(j); } else { Query(j); Answer(i,j); sv[j] = true; break; } } Query(i); } }
#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...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...