| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1107196 | ozner77 | Traffic (IOI10_traffic) | C++17 | 1 ms | 4432 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "traffic.h"
#include <bits/stdc++.h>
using namespace std;
int LocateCentre(int N, int P[], int S[], int D[]){
vector<long long> V;
vector<long long> V1;
V.push_back(P[0]);
V1.push_back(P[0]);
for(int i=1;i<N;i++){
V.push_back(P[i-1]+P[i]);
V1.push_back(P[i]);
}
reverse(V.begin(),V.end());
long long minmax=10000000000;
for(int i=0;i<N;i++){
long long a=V[V.size()-1]-V[i];
long long b=V[i]-V1[i];
long long c=max(a,b);
if(c<minmax){
minmax=c;
}
}
return minmax;
}| # | 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... | ||||
