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 ll long long
#define endl "\n"
#define F first
#define S second
const ll ool=1e18;
const int ooi=1e9;
const int MOD=1e9+7;
const int N=1e6;
int n,m,k;
bool ok[N+5];
ll cnt[N+5];
vector <int> a[N+5];
void dfs(int node)
{
ok[node]=1;
for (int i:a[node])
if (!ok[i])
{
cnt[i]=cnt[node]+1;
dfs(i);
}
}
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
cin>>n>>m>>k;
for (int i=1;i<=n;i++)
{
int u,v; cin>>u>>v;
a[u].push_back(v);
}
for (int i=1;i<=m;i++)
{
int x; cin>>x;
for (int j=1;j<=x;j++) cin>>x;
}
cout<<0;
}
# | 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... |