Submission #971473

#TimeUsernameProblemLanguageResultExecution timeMemory
971473gutzzyPolitical Development (BOI17_politicaldevelopment)C++17
4 / 100
3 ms600 KiB
#include <bits/stdc++.h> using namespace std; int main(){ int n, k, d, x; bool one = false; cin >> n >> k; for(int i=0;i<n;i++){ cin >> d; if(d!=0) one = true; for(int j=0;j<d;j++) cin >> x; } if(one) cout << 2 << endl; else cout << 1 << endl; return 0; }
#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...