Submission #120628

#TimeUsernameProblemLanguageResultExecution timeMemory
120628roseanne_pcyRail (IOI14_rail)C++14
8 / 100
79 ms504 KiB
#include "rail.h"
#include <bits/stdc++.h>
#pragma GCC optimize ("O3")
#pragma GCC target ("sse4")
using namespace std;
#define X first
#define Y second
#define pb push_back
typedef pair<int, int> ii;
typedef long long ll;

int n;

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