57812023-09-27 16:07:39pyramisZenehallgatáscpp11Wrong answer 0/50280ms4804 KiB
#include <iostream>

using namespace std;

int main()
{
    ios_base::sync_with_stdio(false);

    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/03ms1892 KiB
2Time limit exceeded0/0266ms2044 KiB
3Time limit exceeded0/2270ms2424 KiB
4Time limit exceeded0/2256ms2408 KiB
5Time limit exceeded0/2277ms2672 KiB
6Time limit exceeded0/3273ms2688 KiB
7Time limit exceeded0/3252ms2904 KiB
8Time limit exceeded0/3261ms3120 KiB
9Time limit exceeded0/2273ms3456 KiB
10Time limit exceeded0/2266ms3512 KiB
11Time limit exceeded0/2270ms3660 KiB
12Time limit exceeded0/2264ms4024 KiB
13Time limit exceeded0/2254ms3868 KiB
14Time limit exceeded0/2257ms3900 KiB
15Time limit exceeded0/2277ms4104 KiB
16Time limit exceeded0/2248ms4176 KiB
17Time limit exceeded0/2273ms4152 KiB
18Time limit exceeded0/2254ms4432 KiB
19Time limit exceeded0/2257ms4516 KiB
20Time limit exceeded0/2273ms4364 KiB
21Time limit exceeded0/2277ms4456 KiB
22Time limit exceeded0/3270ms4516 KiB
23Time limit exceeded0/3280ms4584 KiB
24Time limit exceeded0/3270ms4804 KiB