# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
836179 | gustason | Minerals (JOI19_minerals) | C++14 | 40 ms | 3464 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
#include "minerals.h"
using namespace std;
int last = 0;
bool ask(int x) {
int now = Query(x);
bool ar_naujas = (now != last);
last = now;
return ar_naujas;
}
#define p(x) cout << (#x) << ":\n";print(x)
void print(vector<int>& a) {
for(int i : a) {
cout << i << " ";
}
cout << "\n";
}
void go(vector<int> pirmas, vector<int> antras, bool flag=false) {
int n = pirmas.size(), m = (int) floor((double) n * 0.6);
//p(pirmas);
//p(antras);
assert(n != 0);
if (n == 1) {
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |