Submission #120627

#TimeUsernameProblemLanguageResultExecution timeMemory
120627roseanne_pcyRail (IOI14_rail)C++14
0 / 100
69 ms512 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/2;
		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...