Submission #677033

#TimeUsernameProblemLanguageResultExecution timeMemory
677033CyanmondPolitical Development (BOI17_politicaldevelopment)C++17
4 / 100
4 ms596 KiB
#include <bits/stdc++.h> int main() { int N, K; std::cin >> N >> K; std::vector<int> D(N); std::vector<std::vector<int>> E(N); for (int i = 0; i < N; ++i) { std::cin >> D[i]; E[i].resize(D[i]); for (auto &e : E[i]) { std::cin >> e; } } if (K == 1) { std::cout << 1 << std::endl; return 0; } if (K == 2) { for (int i = 0; i < N; ++i) { if (D[i] != 0) { std::cout << 2 << std::endl; return 0; } } std::cout << 1 << std::endl; } }
#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...