# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
341989 | Marlov | Rail (IOI14_rail) | C++14 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "rail.h"
#include <vector>
using namespace std;
void findLocation(int N, int first, vector<int> location, vector<int> stype){
location=vector<int>(N,0);
stype=vector<int>(N,2);
stype[0]=1;
for(int i=0;i<N;i++){
location[i]=first+getDistance(0,i);
}
return;
}