1710 | 2022-12-01 16:24:51 | Tina0731 | Ludak Harca | cpp11 | Wrong answer 65/100 | 30ms | 5076 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;
if(hely<n && t[hely]>0)
hely+=t[hely];
dob++;
}
cout<<dob<<" ";
}
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1876 KiB | ||||
2 | Accepted | 2ms | 2112 KiB | ||||
subtask2 | 25/25 | ||||||
3 | Accepted | 2ms | 2320 KiB | ||||
4 | Accepted | 2ms | 2380 KiB | ||||
5 | Accepted | 2ms | 2588 KiB | ||||
6 | Accepted | 4ms | 2832 KiB | ||||
7 | Accepted | 18ms | 3768 KiB | ||||
subtask3 | 40/40 | ||||||
8 | Accepted | 2ms | 3056 KiB | ||||
9 | Accepted | 3ms | 3316 KiB | ||||
10 | Accepted | 4ms | 3552 KiB | ||||
11 | Accepted | 7ms | 3544 KiB | ||||
12 | Accepted | 12ms | 3876 KiB | ||||
13 | Accepted | 18ms | 4360 KiB | ||||
14 | Accepted | 24ms | 4540 KiB | ||||
15 | Accepted | 27ms | 4788 KiB | ||||
subtask4 | 0/35 | ||||||
16 | Accepted | 4ms | 4184 KiB | ||||
17 | Accepted | 7ms | 4456 KiB | ||||
18 | Wrong answer | 9ms | 4496 KiB | ||||
19 | Wrong answer | 13ms | 4564 KiB | ||||
20 | Accepted | 14ms | 4608 KiB | ||||
21 | Wrong answer | 18ms | 4692 KiB | ||||
22 | Wrong answer | 21ms | 4824 KiB | ||||
23 | Wrong answer | 25ms | 4856 KiB | ||||
24 | Accepted | 24ms | 4888 KiB | ||||
25 | Wrong answer | 30ms | 5076 KiB |