Submission #137887

#TimeUsernameProblemLanguageResultExecution timeMemory
137887zoooma13Minerals (JOI19_minerals)C++14
6 / 100
10 ms408 KiB
#include "bits/stdc++.h" #include "minerals.h" using namespace std; void Solve(int N) { vector <bool> taken(2*N+1); for(int i=1; i<=2*N; i++) if(!taken[i]){ Query(i); for(int j=i+1; j<=2*N; j++) if(!taken[j]){ int x = Query(j); if(x == 1){ Answer(i ,j); taken[i] = taken[j] = 1; } Query(j); } 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...