17012022-12-01 16:14:10Tina0731Ludak Harcacpp11Wrong answer 65/10030ms4476 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
1Accepted3ms2148 KiB
2Accepted2ms2292 KiB
subtask225/25
3Accepted2ms2280 KiB
4Accepted2ms2280 KiB
5Accepted2ms2328 KiB
6Accepted4ms2568 KiB
7Accepted19ms3340 KiB
subtask340/40
8Accepted2ms2576 KiB
9Accepted3ms2816 KiB
10Accepted4ms3084 KiB
11Accepted7ms3356 KiB
12Accepted12ms3392 KiB
13Accepted18ms3780 KiB
14Accepted25ms4080 KiB
15Accepted27ms4152 KiB
subtask40/35
16Accepted4ms3348 KiB
17Accepted7ms3688 KiB
18Wrong answer9ms3676 KiB
19Wrong answer13ms3848 KiB
20Accepted14ms3884 KiB
21Wrong answer18ms3912 KiB
22Wrong answer21ms4080 KiB
23Wrong answer25ms4068 KiB
24Accepted25ms4416 KiB
25Wrong answer30ms4476 KiB