16992022-12-01 16:09:19Tina0731Ludak Harcacpp11Runtime error 25/10030ms4956 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;
            hely+=t[hely];
            dob++;
        }
        cout<<dob<<" ";
    }

    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Runtime error3ms2004 KiB
2Accepted2ms2072 KiB
subtask225/25
3Accepted2ms2304 KiB
4Accepted2ms2424 KiB
5Accepted2ms2600 KiB
6Accepted4ms2848 KiB
7Accepted20ms3792 KiB
subtask30/40
8Runtime error2ms3316 KiB
9Runtime error3ms3268 KiB
10Runtime error4ms3428 KiB
11Accepted7ms3592 KiB
12Runtime error12ms4068 KiB
13Accepted18ms4204 KiB
14Runtime error25ms4704 KiB
15Runtime error27ms4588 KiB
subtask40/35
16Accepted4ms4148 KiB
17Accepted7ms4232 KiB
18Runtime error9ms4540 KiB
19Runtime error13ms4568 KiB
20Accepted14ms4620 KiB
21Wrong answer18ms4540 KiB
22Runtime error24ms4832 KiB
23Runtime error25ms4868 KiB
24Accepted25ms4788 KiB
25Runtime error30ms4956 KiB