| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 298907 | lakshith_ | Rail (IOI14_rail) | C++14 | 85 ms | 504 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "rail.h"
//subask 1
/*void findLocation(int N, int first, int location[], int stype[]){
for(int i=1;i<n;i++){
location[i] = getDistance(0,i)+first;
stype[i]=2;
}
location[0]=first;
stype[0]=1;
}*/
//subask 2
void findLocation(int n, int first, int location[], int stype[]){
for(int i=1;i<n;i++){
if(getDistance(0,i)!=getDistance(i,0))continue;
location[i] = getDistance(0,i)+first;
stype[i]=2;
}
for(int i=1;i<n;i++){
if(getDistance(0,i)==getDistance(i,0))continue;
location[i] = first - getDistance(i,0);
stype[i]=1;
}
location[0]=first;
stype[0]=1;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
