17102022-12-01 16:24:51Tina0731Ludak Harcacpp11Wrong answer 65/10030ms5076 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 && t[hely]>0)
                hely+=t[hely];
            dob++;
        }
        cout<<dob<<" ";
    }

    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted3ms1876 KiB
2Accepted2ms2112 KiB
subtask225/25
3Accepted2ms2320 KiB
4Accepted2ms2380 KiB
5Accepted2ms2588 KiB
6Accepted4ms2832 KiB
7Accepted18ms3768 KiB
subtask340/40
8Accepted2ms3056 KiB
9Accepted3ms3316 KiB
10Accepted4ms3552 KiB
11Accepted7ms3544 KiB
12Accepted12ms3876 KiB
13Accepted18ms4360 KiB
14Accepted24ms4540 KiB
15Accepted27ms4788 KiB
subtask40/35
16Accepted4ms4184 KiB
17Accepted7ms4456 KiB
18Wrong answer9ms4496 KiB
19Wrong answer13ms4564 KiB
20Accepted14ms4608 KiB
21Wrong answer18ms4692 KiB
22Wrong answer21ms4824 KiB
23Wrong answer25ms4856 KiB
24Accepted24ms4888 KiB
25Wrong answer30ms5076 KiB