57802023-09-27 16:07:01pyramisZenehallgatáscpp11Wrong answer 0/50300ms4692 KiB
#include <iostream>

using namespace std;

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int N, K;
    int j;
    cin >> N;
    cin >> K;

    int hossz[N];
    int idopontok[K];
    int osszeg = 0;

    int osszegek[10001];

    for(int i = 0; i < N; i++){
        cin >> hossz[i];
    }

    for(int i = 0; i < K; i++){
        cin >> idopontok[i];

    osszeg = 0;
        for( j=0; osszeg<idopontok[i]; j++){
            osszeg = osszeg + hossz[j%N];

            }

                cout << "*"<<j%N <<" ";






        }






    return 0;
}
SubtaskSumTestVerdictTimeMemory
base0/50
1Wrong answer0/03ms1888 KiB
2Time limit exceeded0/0300ms2092 KiB
3Time limit exceeded0/2250ms2324 KiB
4Time limit exceeded0/2264ms2496 KiB
5Time limit exceeded0/2277ms2708 KiB
6Time limit exceeded0/3256ms2928 KiB
7Time limit exceeded0/3245ms3016 KiB
8Time limit exceeded0/3248ms3104 KiB
9Time limit exceeded0/2268ms3128 KiB
10Time limit exceeded0/2254ms3216 KiB
11Time limit exceeded0/2261ms3432 KiB
12Time limit exceeded0/2264ms3492 KiB
13Time limit exceeded0/2254ms3496 KiB
14Time limit exceeded0/2254ms3668 KiB
15Time limit exceeded0/2270ms3876 KiB
16Time limit exceeded0/2282ms3884 KiB
17Time limit exceeded0/2233ms3992 KiB
18Time limit exceeded0/2264ms4068 KiB
19Time limit exceeded0/2230ms4216 KiB
20Time limit exceeded0/2250ms4248 KiB
21Time limit exceeded0/2266ms4440 KiB
22Time limit exceeded0/3261ms4416 KiB
23Time limit exceeded0/3273ms4628 KiB
24Time limit exceeded0/3254ms4692 KiB