| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 674158 | Essa2006 | Stations (IOI20_stations) | C++14 | 807 ms | 536 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std;
vector<int>new_;
vector<int> label(int n, int k, vector<int> u, vector<int> v) {
new_.clear();
new_.resize(n);
for(int i=0;i<n-1;i++){
if(u[i]<v[i])
swap(u[i], v[i]);
new_[i+1]=u[i], new_[i/2]=v[i];
}
return new_;
}
int find_next_station(int s, int t, vector<int> c) {
bool found=0;
int last=t;
while(t){
t=(t-1)/2;
if(t==s){
found=1;
break;
}
last=t;
}
if(!found)
last=c[0];
return last;
}| # | 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... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
