(UPD: 2024-12-04 14:48 UTC) Judge is not working due to Cloudflare incident. (URL) We can do nothing about it, sorry. After the incident is resolved, we will grade all submissions.

Submission #1107212

#TimeUsernameProblemLanguageResultExecution timeMemory
1107212ozner77Traffic (IOI10_traffic)C++17
50 / 100
195 ms22560 KiB
#include <traffic.h> #include <bits/stdc++.h> using namespace std; int LocateCentre(int N, int P[], int S[], int D[]){ vector<long long> V; V.push_back(P[0]); for(int i=1;i<N;i++){ V.push_back(V[i-1]+P[i]); } long long minmax=10000000000; long long res=0; for(int i=0;i<N;i++){ long long a=V[N-1]-V[i]; long long b=V[i]-P[i]; long long c=max(a,b); if(c<minmax){ minmax=c; res=i; } } return res; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...