# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
963456 | 2024-04-15T03:49:10 Z | Namkhing | 수천개의 섬 (IOI22_islands) | C++17 | 23 ms | 3132 KB |
#include <bits/stdc++.h> #include "islands.h" using namespace std; variant<bool, vector<int>> find_journey(int N, int M, vector<int> U, vector<int> V) { if (N == 2) { return false; } int a, b, c, d; for (int i = 0; i < M; i++) { if (U[i] == 0 && V[i] == 1) { a = i; break; } } for (int i = 0; i < M; i++) { if (U[i] == 1 && V[i] == 0) { b = i; break; } } for (int i = 0; i < M; i++) { if (U[i] == 0 && V[i] == 2) { c = i; break; } } for (int i = 0; i < M; i++) { if (U[i] == 2 && V[i] == 0) { d = i; break; } } vector<int> r = {a, b, c, d, b, a, d, c}; return r; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 344 KB | Output is correct |
2 | Incorrect | 0 ms | 344 KB | Output isn't correct |
3 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 348 KB | Output is correct |
2 | Correct | 1 ms | 348 KB | Output is correct |
3 | Correct | 0 ms | 348 KB | Output is correct |
4 | Correct | 0 ms | 348 KB | Output is correct |
5 | Correct | 0 ms | 348 KB | Output is correct |
6 | Correct | 20 ms | 2896 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Partially correct | 1 ms | 348 KB | Output is partially correct |
2 | Incorrect | 0 ms | 348 KB | Output isn't correct |
3 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Partially correct | 0 ms | 348 KB | Output is partially correct |
2 | Partially correct | 1 ms | 348 KB | Output is partially correct |
3 | Partially correct | 23 ms | 3132 KB | Output is partially correct |
4 | Partially correct | 23 ms | 3128 KB | Output is partially correct |
5 | Partially correct | 1 ms | 344 KB | Output is partially correct |
6 | Partially correct | 1 ms | 344 KB | Output is partially correct |
7 | Incorrect | 1 ms | 348 KB | Output isn't correct |
8 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 344 KB | Output is correct |
2 | Incorrect | 0 ms | 344 KB | Output isn't correct |
3 | Halted | 0 ms | 0 KB | - |