Submission #807280

#TimeUsernameProblemLanguageResultExecution timeMemory
807280tch1cherinPolitical Development (BOI17_politicaldevelopment)C++17
4 / 100
4 ms340 KiB
#include <bits/stdc++.h> using namespace std; int main() { int N, K; cin >> N >> K; bool good = false; for (int i = 0; i < N; i++) { int d; cin >> d; if (d != 0) { good = true; } for (int j = 0, x; j < d; j++) { cin >> x; } } cout << (good && K >= 2 ? 2 : 1) << "\n"; }
#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...