제출 #826065

#제출 시각아이디문제언어결과실행 시간메모리
826065LittleCube수천개의 섬 (IOI22_islands)C++17
1.75 / 100
28 ms4268 KiB
#include "islands.h"
#include <bits/stdc++.h>
#define ll long long
#define pii pair<int, int>
#define F first
#define S second
using namespace std;

namespace
{
    int K;
    vector<int> go, back;

}

variant<bool, vector<int>> find_journey(int N, int M, vector<int> U, vector<int> V)
{
    for (int i = 0; i < M; i++)
        if (U[i] == 0)
            go.emplace_back(i);
        else
            back.emplace_back(i);
    vector<int> sol;
    if(go.size() < 2 || back.size() < 2)
        return false;
    return vector<int>{go[0], back[0], go[1], back[1], back[0], go[0], back[1], go[1]};
}

컴파일 시 표준 에러 (stderr) 메시지

islands.cpp:11:9: warning: '{anonymous}::K' defined but not used [-Wunused-variable]
   11 |     int K;
      |         ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...