Submission #621766

# Submission time Handle Problem Language Result Execution time Memory
621766 2022-08-04T02:15:16 Z MinaRagy06 Carnival (CEOI14_carnival) C++17
0 / 100
135 ms 256 KB
#include <bits/stdc++.h>
using namespace std;
#define lesgooo ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0)
// #define endl    '\n'
#define int     long long

int ask(vector<int> a)
{
    cout << a.size() << " ";
    for (auto i : a) cout << i << " ";
    cout << endl;
    int ret;
    cin >> ret;
    return ret;
}
signed main()
{
    lesgooo;
    int n;
    cin >> n;
    int par[n]{};
    for (int i = 0; i < n; i++) par[i] = 1;
    for (int i = 0; i < n; i++) for (int j = i+1; j < n; j++) if (ask({i+1, j+1}) == 1) par[j]++;
    cout << "0 ";
    for (int i = 0; i < n; i++) cout << par[i] << " ";
    cout << endl;
    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 120 ms 208 KB Integer 12 violates the range [1, 11]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 127 ms 208 KB Integer 6 violates the range [1, 5]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 45 ms 256 KB Integer 2 violates the range [1, 1]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 135 ms 208 KB Integer 5 violates the range [1, 4]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 102 ms 208 KB Integer 3 violates the range [1, 2]
2 Halted 0 ms 0 KB -