1709 | 2022-12-01 16:20:32 | Tina0731 | Ludak Harca | cpp11 | Wrong answer 65/100 | 30ms | 5296 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;
if(hely<n)
elore=t[hely];
hely+=elore;
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 | 1876 KiB | ||||
2 | Accepted | 2ms | 2120 KiB | ||||
subtask2 | 25/25 | ||||||
3 | Accepted | 2ms | 2360 KiB | ||||
4 | Accepted | 2ms | 2568 KiB | ||||
5 | Accepted | 2ms | 2768 KiB | ||||
6 | Accepted | 4ms | 2968 KiB | ||||
7 | Accepted | 19ms | 3776 KiB | ||||
subtask3 | 40/40 | ||||||
8 | Accepted | 2ms | 3248 KiB | ||||
9 | Accepted | 3ms | 3476 KiB | ||||
10 | Accepted | 4ms | 3576 KiB | ||||
11 | Accepted | 7ms | 3836 KiB | ||||
12 | Accepted | 12ms | 4172 KiB | ||||
13 | Accepted | 18ms | 4504 KiB | ||||
14 | Accepted | 24ms | 4588 KiB | ||||
15 | Accepted | 27ms | 4884 KiB | ||||
subtask4 | 0/35 | ||||||
16 | Accepted | 4ms | 4496 KiB | ||||
17 | Accepted | 7ms | 4468 KiB | ||||
18 | Wrong answer | 9ms | 4548 KiB | ||||
19 | Wrong answer | 13ms | 4712 KiB | ||||
20 | Accepted | 14ms | 4916 KiB | ||||
21 | Wrong answer | 18ms | 5000 KiB | ||||
22 | Wrong answer | 24ms | 5148 KiB | ||||
23 | Wrong answer | 25ms | 5092 KiB | ||||
24 | Accepted | 24ms | 5128 KiB | ||||
25 | Wrong answer | 30ms | 5296 KiB |