# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
552117 | Alexandruabcde | Sailing Race (CEOI12_race) | C++14 | 653 ms | 5016 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
constexpr int NMAX = 502;
int N, K;
vector <int> G[NMAX];
bool Exist[NMAX][NMAX];
void Read () {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
cin >> N >> K;
for (int i = 1; i <= N; ++ i ) {
int x;
cin >> x;
while (x != 0) {
G[i].push_back(x);
Exist[i][x] = 1;
cin >> x;
}
}
}
bool Between (int val, int st, int dr) {
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |