Submission #875976

#TimeUsernameProblemLanguageResultExecution timeMemory
875976Darren0724Rail (IOI14_rail)C++17
0 / 100
46 ms652 KiB
#include "rail.h"
#include <bits/stdc++.h>
using namespace std;
void findLocation(int n, int first, int ans[], int type[]) {
    ans[0] = first;
    vector<int> a(n), b(n);
    for (int i = 1; i < n; i++) {
        a[i] = getDistance(0, i);
        b[i] = getDistance(i, 0);
        if (a[i] == b[i]) {
            type[i] = 2;
        } else {
            type[i] = 1;
        }
        ans[i] = first + a[i];
    }
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...