1699 | 2022-12-01 16:09:19 | Tina0731 | Ludak Harca | cpp11 | Runtime error 25/100 | 30ms | 4956 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;
hely+=t[hely];
dob++;
}
cout<<dob<<" ";
}
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Runtime error | 3ms | 2004 KiB | ||||
2 | Accepted | 2ms | 2072 KiB | ||||
subtask2 | 25/25 | ||||||
3 | Accepted | 2ms | 2304 KiB | ||||
4 | Accepted | 2ms | 2424 KiB | ||||
5 | Accepted | 2ms | 2600 KiB | ||||
6 | Accepted | 4ms | 2848 KiB | ||||
7 | Accepted | 20ms | 3792 KiB | ||||
subtask3 | 0/40 | ||||||
8 | Runtime error | 2ms | 3316 KiB | ||||
9 | Runtime error | 3ms | 3268 KiB | ||||
10 | Runtime error | 4ms | 3428 KiB | ||||
11 | Accepted | 7ms | 3592 KiB | ||||
12 | Runtime error | 12ms | 4068 KiB | ||||
13 | Accepted | 18ms | 4204 KiB | ||||
14 | Runtime error | 25ms | 4704 KiB | ||||
15 | Runtime error | 27ms | 4588 KiB | ||||
subtask4 | 0/35 | ||||||
16 | Accepted | 4ms | 4148 KiB | ||||
17 | Accepted | 7ms | 4232 KiB | ||||
18 | Runtime error | 9ms | 4540 KiB | ||||
19 | Runtime error | 13ms | 4568 KiB | ||||
20 | Accepted | 14ms | 4620 KiB | ||||
21 | Wrong answer | 18ms | 4540 KiB | ||||
22 | Runtime error | 24ms | 4832 KiB | ||||
23 | Runtime error | 25ms | 4868 KiB | ||||
24 | Accepted | 25ms | 4788 KiB | ||||
25 | Runtime error | 30ms | 4956 KiB |