Submission #889577

# Submission time Handle Problem Language Result Execution time Memory
889577 2023-12-20T03:16:34 Z shiomusubi496 Political Development (BOI17_politicaldevelopment) C++17
4 / 100
5 ms 700 KB
#include <bits/stdc++.h>

using namespace std;

#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define rrep(i, n) for (int i = (int)(n) - 1; i >= 0; --i)
#define all(v) begin(v), end(v)

int main() {
    int n, k; cin >> n >> k;
    assert(k <= 2);
    vector<vector<int>> g(n);
    bool f = false;
    rep (i, n) {
        int d; cin >> d;
        if (d) f = true;
        rep (j, d) {
            int a; cin >> a;
            g[i].push_back(a);
        }
    }
    if (f) cout << k << endl;
    else cout << 1 << endl;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 352 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 3 ms 700 KB Output is correct
4 Correct 3 ms 604 KB Output is correct
5 Correct 3 ms 600 KB Output is correct
6 Correct 3 ms 600 KB Output is correct
7 Correct 5 ms 600 KB Output is correct
8 Correct 2 ms 344 KB Output is correct
9 Correct 0 ms 344 KB Output is correct
10 Correct 1 ms 560 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 352 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 3 ms 700 KB Output is correct
4 Correct 3 ms 604 KB Output is correct
5 Correct 3 ms 600 KB Output is correct
6 Correct 3 ms 600 KB Output is correct
7 Correct 5 ms 600 KB Output is correct
8 Correct 2 ms 344 KB Output is correct
9 Correct 0 ms 344 KB Output is correct
10 Correct 1 ms 560 KB Output is correct
11 Correct 3 ms 604 KB Output is correct
12 Runtime error 1 ms 604 KB Execution killed with signal 6
13 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 348 KB Execution killed with signal 6
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 352 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 3 ms 700 KB Output is correct
4 Correct 3 ms 604 KB Output is correct
5 Correct 3 ms 600 KB Output is correct
6 Correct 3 ms 600 KB Output is correct
7 Correct 5 ms 600 KB Output is correct
8 Correct 2 ms 344 KB Output is correct
9 Correct 0 ms 344 KB Output is correct
10 Correct 1 ms 560 KB Output is correct
11 Correct 3 ms 604 KB Output is correct
12 Runtime error 1 ms 604 KB Execution killed with signal 6
13 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 352 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 3 ms 700 KB Output is correct
4 Correct 3 ms 604 KB Output is correct
5 Correct 3 ms 600 KB Output is correct
6 Correct 3 ms 600 KB Output is correct
7 Correct 5 ms 600 KB Output is correct
8 Correct 2 ms 344 KB Output is correct
9 Correct 0 ms 344 KB Output is correct
10 Correct 1 ms 560 KB Output is correct
11 Correct 3 ms 604 KB Output is correct
12 Runtime error 1 ms 604 KB Execution killed with signal 6
13 Halted 0 ms 0 KB -