1708 | 2022-12-01 16:18:56 | Tina0731 | Ludak Harca | cpp11 | Wrong answer 65/100 | 30ms | 5372 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;
int elore;
for(int i=1;i<7;i++)
{
hely=0;
dob=0;
while(hely<n)
{
hely+=i;
if(hely<n)
elore=t[hely];
hely+=elore;
dob++;
}
cout<<dob<<" ";
}
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1748 KiB | ||||
2 | Accepted | 2ms | 2004 KiB | ||||
subtask2 | 25/25 | ||||||
3 | Accepted | 2ms | 2248 KiB | ||||
4 | Accepted | 2ms | 2412 KiB | ||||
5 | Accepted | 2ms | 2608 KiB | ||||
6 | Accepted | 4ms | 2724 KiB | ||||
7 | Accepted | 19ms | 3588 KiB | ||||
subtask3 | 40/40 | ||||||
8 | Accepted | 2ms | 3020 KiB | ||||
9 | Accepted | 3ms | 3144 KiB | ||||
10 | Accepted | 4ms | 3164 KiB | ||||
11 | Accepted | 7ms | 3080 KiB | ||||
12 | Accepted | 12ms | 3420 KiB | ||||
13 | Accepted | 18ms | 3752 KiB | ||||
14 | Accepted | 25ms | 3928 KiB | ||||
15 | Accepted | 27ms | 4100 KiB | ||||
subtask4 | 0/35 | ||||||
16 | Accepted | 4ms | 3532 KiB | ||||
17 | Accepted | 7ms | 3864 KiB | ||||
18 | Wrong answer | 9ms | 3988 KiB | ||||
19 | Wrong answer | 13ms | 4152 KiB | ||||
20 | Accepted | 14ms | 4452 KiB | ||||
21 | Wrong answer | 18ms | 4540 KiB | ||||
22 | Wrong answer | 21ms | 4844 KiB | ||||
23 | Wrong answer | 25ms | 4952 KiB | ||||
24 | Accepted | 25ms | 5172 KiB | ||||
25 | Wrong answer | 30ms | 5372 KiB |