17092022-12-01 16:20:32Tina0731Ludak Harcacpp11Wrong answer 65/10030ms5296 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;
        if(hely<n)
            elore=t[hely];
        hely+=elore;
        while(hely<n)
        {
            hely+=i;
            if(hely<n)
                elore=t[hely];
            hely+=elore;
            dob++;
        }
        cout<<dob<<" ";
    }

    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted3ms1876 KiB
2Accepted2ms2120 KiB
subtask225/25
3Accepted2ms2360 KiB
4Accepted2ms2568 KiB
5Accepted2ms2768 KiB
6Accepted4ms2968 KiB
7Accepted19ms3776 KiB
subtask340/40
8Accepted2ms3248 KiB
9Accepted3ms3476 KiB
10Accepted4ms3576 KiB
11Accepted7ms3836 KiB
12Accepted12ms4172 KiB
13Accepted18ms4504 KiB
14Accepted24ms4588 KiB
15Accepted27ms4884 KiB
subtask40/35
16Accepted4ms4496 KiB
17Accepted7ms4468 KiB
18Wrong answer9ms4548 KiB
19Wrong answer13ms4712 KiB
20Accepted14ms4916 KiB
21Wrong answer18ms5000 KiB
22Wrong answer24ms5148 KiB
23Wrong answer25ms5092 KiB
24Accepted24ms5128 KiB
25Wrong answer30ms5296 KiB