2121 | 2022-12-21 08:19:26 | Timi | Ludak Harca | cpp11 | Runtime error 0/100 | 30ms | 5164 KiB |
#include <iostream>
using namespace std;
int main()
{
int n, i, lepes=0;
cin>>n;
int a[n];
for (i=0; i<n; i++)
{
cin>>a[i];
}
for (int j=1; j<=6; j++)
{
lepes=0;
i=0;
while (i<n)
{
lepes++;
i=i+j;
i=i+a[i];
}
cout<<lepes<<" ";
}
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Runtime error | 3ms | 1976 KiB | ||||
2 | Runtime error | 3ms | 2172 KiB | ||||
subtask2 | 0/25 | ||||||
3 | Accepted | 2ms | 2268 KiB | ||||
4 | Runtime error | 2ms | 2452 KiB | ||||
5 | Runtime error | 3ms | 2720 KiB | ||||
6 | Accepted | 4ms | 2860 KiB | ||||
7 | Runtime error | 19ms | 3640 KiB | ||||
subtask3 | 0/40 | ||||||
8 | Accepted | 2ms | 3196 KiB | ||||
9 | Runtime error | 3ms | 3268 KiB | ||||
10 | Accepted | 4ms | 3288 KiB | ||||
11 | Accepted | 7ms | 3612 KiB | ||||
12 | Runtime error | 12ms | 4088 KiB | ||||
13 | Accepted | 18ms | 4300 KiB | ||||
14 | Runtime error | 25ms | 4576 KiB | ||||
15 | Accepted | 27ms | 4584 KiB | ||||
subtask4 | 0/35 | ||||||
16 | Accepted | 4ms | 3868 KiB | ||||
17 | Accepted | 7ms | 4144 KiB | ||||
18 | Wrong answer | 9ms | 4124 KiB | ||||
19 | Runtime error | 13ms | 4552 KiB | ||||
20 | Accepted | 14ms | 4476 KiB | ||||
21 | Wrong answer | 18ms | 4512 KiB | ||||
22 | Wrong answer | 21ms | 4816 KiB | ||||
23 | Runtime error | 25ms | 5028 KiB | ||||
24 | Runtime error | 25ms | 5164 KiB | ||||
25 | Runtime error | 30ms | 5104 KiB |