1704 | 2022-12-01 16:16:12 | Tina0731 | Ludak Harca | cpp11 | Wrong answer 0/100 | 30ms | 5124 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 | 1876 KiB | ||||
2 | Wrong answer | 2ms | 2120 KiB | ||||
subtask2 | 0/25 | ||||||
3 | Wrong answer | 2ms | 2588 KiB | ||||
4 | Wrong answer | 2ms | 2652 KiB | ||||
5 | Wrong answer | 2ms | 2784 KiB | ||||
6 | Wrong answer | 4ms | 3056 KiB | ||||
7 | Wrong answer | 19ms | 3956 KiB | ||||
subtask3 | 0/40 | ||||||
8 | Wrong answer | 2ms | 3264 KiB | ||||
9 | Wrong answer | 3ms | 3424 KiB | ||||
10 | Wrong answer | 4ms | 3660 KiB | ||||
11 | Wrong answer | 7ms | 3888 KiB | ||||
12 | Wrong answer | 12ms | 4128 KiB | ||||
13 | Wrong answer | 18ms | 4340 KiB | ||||
14 | Wrong answer | 24ms | 4784 KiB | ||||
15 | Wrong answer | 27ms | 4996 KiB | ||||
subtask4 | 0/35 | ||||||
16 | Wrong answer | 4ms | 4308 KiB | ||||
17 | Wrong answer | 7ms | 4288 KiB | ||||
18 | Wrong answer | 9ms | 4364 KiB | ||||
19 | Wrong answer | 13ms | 4680 KiB | ||||
20 | Wrong answer | 14ms | 4632 KiB | ||||
21 | Wrong answer | 18ms | 4560 KiB | ||||
22 | Wrong answer | 21ms | 4872 KiB | ||||
23 | Wrong answer | 25ms | 4768 KiB | ||||
24 | Wrong answer | 25ms | 4804 KiB | ||||
25 | Wrong answer | 30ms | 5124 KiB |