Submission #421227

#TimeUsernameProblemLanguageResultExecution timeMemory
421227OzyRail (IOI14_rail)C++17
8 / 100
89 ms500 KiB
#include "rail.h"
#include <bits/stdc++.h>
using namespace std;
#define rep(i,a,b) for (int i = (a); i <= (b); i++)
#define repa(i,a,b) for (int i = (a); i >= (b); i--)
#define lli long long int
#define debugsl(a) cout << #a << " = " << a << ", "
#define debug(a) cout << #a << " = " << a << endl

void findLocation(int N, int first, int location[], int stype[])
{
    lli a;

    location[0] = first;
    stype[0] = 1;
    rep(i,1,N-1) {
        a = getDistance(0,i);
        location[i] = first + a;
        stype[i] = 2;
    }
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...