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 pb push_back
#define F first
#define S second
#define int long long
const int N=1e5+5;
int n,m,k;
pair<int,int> e[N];
int32_t main(){
cin>>n>>m>>k;
for (int i=1;i<n;i++) cin>>e[i].F>>e[i].S;
for (int i=1;i<=m;i++){
int z;cin>>z;
for (int i=1;i<=z;i++){
int x;cin>>x;
}
}
cout<<n-1<<endl;
for (int i=1;i<n;i++) cout<<i<<' ';
cout<<endl;
return 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... |