# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
400641 | ioi | Traffic (IOI10_traffic) | C++14 | 0 ms | 0 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 "traffic.h"
#include<bits/stdc++.h>
using namespace std ;
int LocateCentre(int N, int pp[], int S[], int D[]) {
int mx = 1e9 + 9 ;
mx = 0 ;
for(int i = 0 ; i < N ; i ++)
mn = max(mn , pp[i]);
for(int i = 0 ; i < N ; i ++)
if(mn == pp[i])return i ;
return N/2;
}