# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
15839 | jihoon | 전봇대 (KOI13_pole) | C++98 | 32 ms | 3816 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<cstdio>
#include<algorithm>
#include<cmath>
using namespace std;
class su{
public:
double gap;int gae;
bool operator < (const su &ss) const{
return gap < ss.gap;
}
};
int n;
int wichi[100001];
long long int res[100001];
long long int mn=-1;
su midd[100001];
long long int whole;
long long int mid1,mid2;
double mi1,mi2;
int lb1,ub1,lb2,ub2;
long long int calc(int obj){
long long int dap=0,gg=0;
for(int i=1;i<n;i++){
gg+=obj;
dap+=abs(gg-wichi[i]);
}
//printf("%d %lld\n",obj,dap);
# | 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... |