64782023-12-04 15:12:22ct72Ludak Harcacpp11Time limit exceeded 0/1001.105s9624 KiB
#include <iostream>

using namespace std;

int main()
{
   int N;
   cin>>N;
   int a[N];
   for(int i=0;i<N;i++)
    cin>>a[i];
   int m;
   for(int i=1;i<=6;i++)
   {
       m=0;
        for(int j=0;j<=N;)
        {
         m++;
         j=j+i;
         j=j+a[j];
        }
       cout<<m<<" ";
   }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Time limit exceeded1.069s6024 KiB
2Accepted3ms1920 KiB
subtask20/25
3Accepted3ms2136 KiB
4Wrong answer3ms2344 KiB
5Time limit exceeded1.105s5876 KiB
6Accepted4ms3084 KiB
7Accepted20ms3896 KiB
subtask30/40
8Wrong answer3ms3056 KiB
9Accepted3ms3060 KiB
10Accepted4ms3328 KiB
11Wrong answer7ms3704 KiB
12Time limit exceeded1.105s7564 KiB
13Accepted19ms4268 KiB
14Time limit exceeded1.077s8732 KiB
15Time limit exceeded1.069s8064 KiB
subtask40/35
16Accepted4ms4008 KiB
17Time limit exceeded1.105s8048 KiB
18Time limit exceeded1.052s7848 KiB
19Wrong answer14ms4344 KiB
20Accepted14ms4452 KiB
21Wrong answer18ms4496 KiB
22Time limit exceeded1.105s7428 KiB
23Time limit exceeded1.059s7476 KiB
24Time limit exceeded1.085s9348 KiB
25Wrong answer953ms9624 KiB