1698 | 2022-12-01 16:07:42 | Tina0731 | Ludak Harca | cpp11 | Runtime error 0/100 | 56ms | 5584 KiB |
#include <iostream>
using namespace std;
int main()
{
int n;
cin>>n;
int t[n];
for(int i;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 | 1980 KiB | ||||
2 | Runtime error | 2ms | 2248 KiB | ||||
subtask2 | 0/25 | ||||||
3 | Accepted | 2ms | 2460 KiB | ||||
4 | Accepted | 2ms | 2636 KiB | ||||
5 | Wrong answer | 56ms | 2920 KiB | ||||
6 | Accepted | 4ms | 2980 KiB | ||||
7 | Accepted | 19ms | 3608 KiB | ||||
subtask3 | 0/40 | ||||||
8 | Accepted | 2ms | 2912 KiB | ||||
9 | Runtime error | 3ms | 3272 KiB | ||||
10 | Accepted | 4ms | 3272 KiB | ||||
11 | Accepted | 7ms | 3604 KiB | ||||
12 | Runtime error | 12ms | 4012 KiB | ||||
13 | Accepted | 18ms | 4304 KiB | ||||
14 | Runtime error | 25ms | 4588 KiB | ||||
15 | Runtime error | 27ms | 4624 KiB | ||||
subtask4 | 0/35 | ||||||
16 | Accepted | 4ms | 3952 KiB | ||||
17 | Runtime error | 7ms | 4292 KiB | ||||
18 | Wrong answer | 9ms | 4384 KiB | ||||
19 | Runtime error | 13ms | 4780 KiB | ||||
20 | Accepted | 14ms | 4864 KiB | ||||
21 | Runtime error | 18ms | 4952 KiB | ||||
22 | Runtime error | 21ms | 5028 KiB | ||||
23 | Runtime error | 25ms | 5156 KiB | ||||
24 | Accepted | 24ms | 5188 KiB | ||||
25 | Runtime error | 30ms | 5584 KiB |