제출 #835864

#제출 시각아이디문제언어결과실행 시간메모리
835864APROHACK수천개의 섬 (IOI22_islands)C++17
1.75 / 100
23 ms4180 KiB
#include "islands.h" #include <variant> #include <vector> std::variant<bool, std::vector<int>> find_journey( int N, int M, std::vector<int> U, std::vector<int> V) { int cuenta[N][N]; for(int i = 0 ; i < N ; i ++){ for(int j = 0 ; j < N ; j ++){ cuenta[i][j] = 0; } } for(int i = 0 ; i < M ; i ++ ){ cuenta[U[i]][V[i]] ++ ; } if (N == 2) { if(cuenta[0][1] >= 2 and cuenta[1][0] >= 1)return true; return false; } return false; }
#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...