# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
936250 | sleepntsheep | Alternating Heights (CCO22_day1problem1) | C++17 | 475 ms | 14136 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;
#define ALL(x) begin(x), end(x)
#define ShinLena cin.tie(nullptr)->sync_with_stdio(false);
#define N 3005
int n, k, q, a[N], L[N];
basic_string<int> g[N];
int vs[N];
int cyclic(int u)
{
vs[u] = 1;
for (int v : g[u])
if (vs[v] == 1 || !vs[v] && cyclic(v)) return 1;
vs[u] = 2;
return 0;
}
int main()
{
ShinLena;
cin >> n >> k >> q;
for (int i = 1; i <= n; ++i)
{
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |