1701 | 2022-12-01 16:14:10 | Tina0731 | Ludak Harca | cpp11 | Wrong answer 65/100 | 30ms | 4476 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)
hely+=t[hely];
dob++;
}
cout<<dob<<" ";
}
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 2148 KiB | ||||
2 | Accepted | 2ms | 2292 KiB | ||||
subtask2 | 25/25 | ||||||
3 | Accepted | 2ms | 2280 KiB | ||||
4 | Accepted | 2ms | 2280 KiB | ||||
5 | Accepted | 2ms | 2328 KiB | ||||
6 | Accepted | 4ms | 2568 KiB | ||||
7 | Accepted | 19ms | 3340 KiB | ||||
subtask3 | 40/40 | ||||||
8 | Accepted | 2ms | 2576 KiB | ||||
9 | Accepted | 3ms | 2816 KiB | ||||
10 | Accepted | 4ms | 3084 KiB | ||||
11 | Accepted | 7ms | 3356 KiB | ||||
12 | Accepted | 12ms | 3392 KiB | ||||
13 | Accepted | 18ms | 3780 KiB | ||||
14 | Accepted | 25ms | 4080 KiB | ||||
15 | Accepted | 27ms | 4152 KiB | ||||
subtask4 | 0/35 | ||||||
16 | Accepted | 4ms | 3348 KiB | ||||
17 | Accepted | 7ms | 3688 KiB | ||||
18 | Wrong answer | 9ms | 3676 KiB | ||||
19 | Wrong answer | 13ms | 3848 KiB | ||||
20 | Accepted | 14ms | 3884 KiB | ||||
21 | Wrong answer | 18ms | 3912 KiB | ||||
22 | Wrong answer | 21ms | 4080 KiB | ||||
23 | Wrong answer | 25ms | 4068 KiB | ||||
24 | Accepted | 25ms | 4416 KiB | ||||
25 | Wrong answer | 30ms | 4476 KiB |