245272026-02-12 17:21:21AkosVagyokEmborZenehallgatáscpp17Wrong answer 0/50300ms32000 KiB
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
vector <int> zenek, st, seg;
int zsz, sszam, sum;
void be() {
    cin >> zsz>>sszam;
    zenek.resize(zsz+1);
    st.resize(sszam + 1);
    for (int i = 1; i <= zsz; i++) {
        cin >> zenek[i];
        sum += zenek[i];
        if (i != 1) {
            zenek[i] += zenek[i - 1];
        }
    }
    for (int i = 1; i <= sszam; i++) {
        cin >> st[i];        
    }
    int index = 0;
    seg.resize(sum + 1);
    for (int i = 1; i <= zsz; i++) {
        for (int j = 1; j <= zenek[i]; j++) {
            if (!seg[j]) {
                seg[j] = i;
            }
        }
    }
}
void nagy() {
    for (int k = 1; k <= sszam; k++) {
        int a;
        
    }
}



int main()
{
    be();
    nagy();

    
}

SubtaskSumTestVerdictTimeMemory
base0/50
1Wrong answer0/01ms512 KiB
2Runtime error0/0104ms32000 KiB
3Time limit exceeded0/2280ms19764 KiB
4Time limit exceeded0/2279ms10048 KiB
5Time limit exceeded0/2300ms2356 KiB
6Wrong answer0/345ms748 KiB
7Wrong answer0/324ms316 KiB
8Wrong answer0/37ms316 KiB
9Runtime error0/2105ms32000 KiB
10Runtime error0/2104ms32000 KiB
11Runtime error0/297ms32000 KiB
12Runtime error0/296ms32000 KiB
13Runtime error0/2100ms32000 KiB
14Runtime error0/296ms32000 KiB
15Runtime error0/2100ms32000 KiB
16Runtime error0/293ms32000 KiB
17Runtime error0/293ms32000 KiB
18Time limit exceeded0/2293ms20908 KiB
19Time limit exceeded0/2300ms20656 KiB
20Time limit exceeded0/2300ms3240 KiB
21Time limit exceeded0/2289ms3124 KiB
22Time limit exceeded0/3289ms3236 KiB
23Time limit exceeded0/3300ms1968 KiB
24Time limit exceeded0/3300ms1844 KiB