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;
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 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... |