Submission #1016703

#TimeUsernameProblemLanguageResultExecution timeMemory
1016703NValchanovRail (IOI14_rail)C++17
8 / 100
49 ms644 KiB
#include <bits/stdc++.h>
#include "rail.h"

#define endl '\n'

using namespace std;

typedef long long ll;

void findLocation(int n, int first, int location[], int stype[])
{
    location[0] = first;
    stype[0] = 1;

    for(int i = 1; i < n; i++)
    {
        stype[i] = 2;
    }

    for(int i = 1; i < n; i++)
    {
        location[i] = first + getDistance(0, 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...