# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1159505 | nrg_studio | Bosses (BOI16_bosses) | C++20 | 383 ms | 740 KiB |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define pii pair<int,int>
#define f first
#define s second
#define chmin(a, b) a = min(a,b)
#define chmax(a, b) a = max(a,b)
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define F0R(i, a) for (int i = 0; i < (a); i++)
#define all(x) x.begin(),x.end()
#define v vector
const int MAX_N = 5000;
v<int> adj[MAX_N];
int dist[MAX_N];
int ans = INT_MAX;
int main() {
ios::sync_with_stdio(false); cin.tie(0);
int n; cin >> n;
F0R(i,n) {
int m; cin >> m;
F0R(j,m) {
int a; cin >> a;
adj[--a].pb(i);
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |