Submission #934863

#TimeUsernameProblemLanguageResultExecution timeMemory
934863irmuunPolitical Development (BOI17_politicaldevelopment)C++17
0 / 100
1 ms856 KiB
#include<bits/stdc++.h> using namespace std; #define ll long long #define pb push_back #define ff first #define ss second #define all(s) s.begin(),s.end() #define rall(s) s.rbegin(),s.rend() int main(){ ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); ll n,k; cin>>n>>k; ll d[n]; vector<ll>adj[n]; bool ok=false; for(ll i=0;i<n;i++){ cin>>d[i]; if(d[i]>0) ok=true; adj[i].pb(d[i]); for(ll j=0;j<d[i];j++){ cin>>adj[i][j]; } } cout<<(ok?2:1); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...