Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
552 B
2
Indexable
Never
#include <iostream>
using namespace std;

int main() {
    int n, k;
    int* arr_A;
    int* arr_B;
    int** arr_C;
       
    cin >> n;
    arr_A = new int[n];
    
    for (int i = 0; i < n; i++) {
        cin >> arr_A[i];
    }
    cin >> k;
    arr_B = new int[k];
    arr_C  =new int*[k];
    
    for (int i = 0; i < k; i++) {
        cin >> arr_B[i];
        arr_C[i] = new int[arr_B[i]];
        
        for (int j = 0; j < arr_B[i]; j++) {
            cin >> arr_C[i][j];
        }
    }
    
    return 0;
}
Leave a Comment