# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
593599 | kenjinemera | Connecting Supertrees (IOI20_supertrees) | C++17 | 234 ms | 24096 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 "supertrees.h"
#include <bits/stdc++.h>
using namespace std;
/*
Sub 1 + 2: Construct numerous connected components
Sub 3: Add cycle to the numerous components (break if component size == 2)
Sub 4: Build many trees and loop around their roots
Sub 5: Verify that Law Of Tree works
Sub 6: We can't allow 3 since we would need 4
*/
typedef long long int64;
#define pb push_back
#define f first
#define s second
#define vi vector<int>
const int MAXN = 1010;
bool vis[MAXN];
int construct(vector<vector<int>> p)
{
int n = p.size();
vector<vi> answer;
for (int i = 0; i < n; i++) {
vector<int> row;
row.resize(n);
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |