| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1311219 | mo_aladaili | 기지국 (IOI20_stations) | C++20 | 393 ms | 432 KiB |
#include "bits/stdc++.h"
using namespace std;
vector<int> label(int n, int k, vector<int> u, vector<int> v)
{
vector<int> lab(n);
for (int i = 0; i < n; i++)
lab[i] = i + 1;
return lab;
}
int find_next_station(int s, int t, vector<int> c)
{
int target = t - 1;
for (int x : c)
{
int v = x - 1;
int cur = target;
while (true)
{
if (cur == v)
return x;
if (cur == 0)
break;
cur /= 2;
}
}
for (int x : c)
{
if ((x - 1) == (s - 1) / 2)
return x;
}
return c[0];
}
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
