| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1359435 | opeleklanos | 수천개의 섬 (IOI22_islands) | C++20 | 12 ms | 3100 KiB |
#include <iostream>
#include <vector>
#include <variant>
using namespace std;
variant<bool, vector<int>> find_journey(int N, int M, vector<int> U, vector<int> V){
int a = -1, b = -1, c = -1, d = -1;
if(N<=2) return (bool)0;
for(int i = 0; i<M; i++){
if(U[i] == 0 && V[i] == 1) a = i;
if(U[i] == 0 && V[i] == 2) b = i;
if(U[i] == 1 && V[i] == 0) c = i;
if(U[i] == 2 && V[i] == 0) d = i;
}
vector<int> ans = {a, c, b, d, c, a, d, b};
return ans;
}| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
