# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1174899 | gyg | Keys (IOI21_keys) | C++20 | 53 ms | 14664 KiB |
#include "keys.h"
#include <bits/stdc++.h>
using namespace std;
#define vec vector
#define arr array
#define pii pair<int, int>
#define fir first
#define sec second
#define hset unordered_set
#define hmap unordered_map
const int N = 3e5 + 5, INF = 1e9;
// Zero indexing
int n;
arr<int, N> cl;
arr<vec<pii>, N> adj;
// arr<bool, N> vs;
// arr<vec<int>, N> ngh;
// set<int> cls;
// vec<int> ord;
// void cnt_cmp(int st) {
// vs.fill(false), ngh.fill({}), cls.clear(), ord.clear();
// vs[st] = true, ord.push_back(st);
// while (ord.size()) {
// int u = ord.back(); ord.pop_back();
// for (pii x : adj[u]) {
# | 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... |