# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1160771 | SmuggingSpun | 철로 (IOI14_rail) | C++20 | 0 ms | 0 KiB |
#include<bits/stdc++.h>
#include "rail.h"
using namespace std;
void findLocation(int N, int first, int location[], int stype[]){
location[0] = first;
stype[0] = 1;
fill(stype + 1, stype + N, 2);
for(int i = 1; i < n; i++){
location[i] = first + getDistance(0, i);
}
}