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 "elephants.h"
#include <bits/stdc++.h>
int n, l, x[2];
void init(int N, int L, int X[]) {
n = N;
l = L;
x[0] = X[0];
x[1] = X[1];
}
int update(int i, int y) {
x[i] = y;
int fi = x[0];
int si = x[1];
if(abs(fi - si) > l) return 2;
else return 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... |