16982022-12-01 16:07:42Tina0731Ludak Harcacpp11Runtime error 0/10056ms5584 KiB
#include <iostream>

using namespace std;

int main()
{
    int n;
    cin>>n;
    int t[n];
    for(int i;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 error3ms1980 KiB
2Runtime error2ms2248 KiB
subtask20/25
3Accepted2ms2460 KiB
4Accepted2ms2636 KiB
5Wrong answer56ms2920 KiB
6Accepted4ms2980 KiB
7Accepted19ms3608 KiB
subtask30/40
8Accepted2ms2912 KiB
9Runtime error3ms3272 KiB
10Accepted4ms3272 KiB
11Accepted7ms3604 KiB
12Runtime error12ms4012 KiB
13Accepted18ms4304 KiB
14Runtime error25ms4588 KiB
15Runtime error27ms4624 KiB
subtask40/35
16Accepted4ms3952 KiB
17Runtime error7ms4292 KiB
18Wrong answer9ms4384 KiB
19Runtime error13ms4780 KiB
20Accepted14ms4864 KiB
21Runtime error18ms4952 KiB
22Runtime error21ms5028 KiB
23Runtime error25ms5156 KiB
24Accepted24ms5188 KiB
25Runtime error30ms5584 KiB