6479 | 2023-12-04 15:16:28 | ct72 | Ludak Harca | cpp11 | Runtime error 0/100 | 32ms | 5116 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;
while(a[j]!=0)
{
j=j+a[j];
}
}
cout<<m<<" ";
}
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Runtime error | 3ms | 1848 KiB | ||||
2 | Runtime error | 3ms | 2020 KiB | ||||
subtask2 | 0/25 | ||||||
3 | Runtime error | 3ms | 2300 KiB | ||||
4 | Runtime error | 3ms | 2432 KiB | ||||
5 | Runtime error | 3ms | 2712 KiB | ||||
6 | Runtime error | 4ms | 2840 KiB | ||||
7 | Runtime error | 19ms | 3632 KiB | ||||
subtask3 | 0/40 | ||||||
8 | Runtime error | 3ms | 3140 KiB | ||||
9 | Runtime error | 4ms | 3288 KiB | ||||
10 | Runtime error | 4ms | 3464 KiB | ||||
11 | Runtime error | 7ms | 3548 KiB | ||||
12 | Runtime error | 13ms | 3852 KiB | ||||
13 | Runtime error | 19ms | 4340 KiB | ||||
14 | Runtime error | 25ms | 4372 KiB | ||||
15 | Runtime error | 28ms | 4728 KiB | ||||
subtask4 | 0/35 | ||||||
16 | Runtime error | 4ms | 4164 KiB | ||||
17 | Runtime error | 7ms | 4272 KiB | ||||
18 | Runtime error | 10ms | 4568 KiB | ||||
19 | Runtime error | 14ms | 4708 KiB | ||||
20 | Runtime error | 14ms | 4744 KiB | ||||
21 | Runtime error | 19ms | 5020 KiB | ||||
22 | Runtime error | 23ms | 4816 KiB | ||||
23 | Runtime error | 26ms | 4988 KiB | ||||
24 | Runtime error | 25ms | 5028 KiB | ||||
25 | Runtime error | 32ms | 5116 KiB |