17042022-12-01 16:16:12Tina0731Ludak Harcacpp11Wrong answer 0/10030ms5124 KiB
#include <iostream>

using namespace std;

int main()
{
    int n;
    cin>>n;
    int t[n];
    for(int i=0;i<n;i++)
        cin>>t[i];

    int hely=0;
    int dob;
    for(int i=1;i<7;i++)
    {
        hely=0;
        dob=0;
        while(hely<=n)
        {
            hely+=i;
            if(hely<n)
                hely+=t[hely];

            dob++;
        }
        cout<<dob<<" ";
    }

    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted3ms1876 KiB
2Wrong answer2ms2120 KiB
subtask20/25
3Wrong answer2ms2588 KiB
4Wrong answer2ms2652 KiB
5Wrong answer2ms2784 KiB
6Wrong answer4ms3056 KiB
7Wrong answer19ms3956 KiB
subtask30/40
8Wrong answer2ms3264 KiB
9Wrong answer3ms3424 KiB
10Wrong answer4ms3660 KiB
11Wrong answer7ms3888 KiB
12Wrong answer12ms4128 KiB
13Wrong answer18ms4340 KiB
14Wrong answer24ms4784 KiB
15Wrong answer27ms4996 KiB
subtask40/35
16Wrong answer4ms4308 KiB
17Wrong answer7ms4288 KiB
18Wrong answer9ms4364 KiB
19Wrong answer13ms4680 KiB
20Wrong answer14ms4632 KiB
21Wrong answer18ms4560 KiB
22Wrong answer21ms4872 KiB
23Wrong answer25ms4768 KiB
24Wrong answer25ms4804 KiB
25Wrong answer30ms5124 KiB