17082022-12-01 16:18:56Tina0731Ludak Harcacpp11Wrong answer 65/10030ms5372 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;
    int elore;
    for(int i=1;i<7;i++)
    {
        hely=0;
        dob=0;
        while(hely<n)
        {
            hely+=i;
            if(hely<n)
                elore=t[hely];
            hely+=elore;
            dob++;
        }
        cout<<dob<<" ";
    }

    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted3ms1748 KiB
2Accepted2ms2004 KiB
subtask225/25
3Accepted2ms2248 KiB
4Accepted2ms2412 KiB
5Accepted2ms2608 KiB
6Accepted4ms2724 KiB
7Accepted19ms3588 KiB
subtask340/40
8Accepted2ms3020 KiB
9Accepted3ms3144 KiB
10Accepted4ms3164 KiB
11Accepted7ms3080 KiB
12Accepted12ms3420 KiB
13Accepted18ms3752 KiB
14Accepted25ms3928 KiB
15Accepted27ms4100 KiB
subtask40/35
16Accepted4ms3532 KiB
17Accepted7ms3864 KiB
18Wrong answer9ms3988 KiB
19Wrong answer13ms4152 KiB
20Accepted14ms4452 KiB
21Wrong answer18ms4540 KiB
22Wrong answer21ms4844 KiB
23Wrong answer25ms4952 KiB
24Accepted25ms5172 KiB
25Wrong answer30ms5372 KiB