# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
18419 | suhgyuho_william | 막대기 (KOI13_game) | C++98 | 121 ms | 13320 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 <stdio.h>
#include <algorithm>
using namespace std;
int N;
long long L;
struct data{
int num;
long long x,y;
}a[100002],b[100002];
bool cmpx(data x,data y){
if(x.x != y.x) return x.x < y.x;
return x.y < y.y;
}
bool cmpy(data x,data y){
if(x.y != y.y) return x.y < y.y;
return x.x < y.x;
}
int where[100002];
long long d[100002][2];
bool check[100002][2];
long long length(int x){
long long ans;
ans = a[x].x-a[x].y;
if(ans < 0) ans = -ans;
return ans+L;
}
# | 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... |