6478 | 2023-12-04 15:12:22 | ct72 | Ludak Harca | cpp11 | Time limit exceeded 0/100 | 1.105s | 9624 KiB |
#include <iostream>
using namespace std;
int main()
{
int N;
cin>>N;
int a[N];
for(int i=0;i<N;i++)
cin>>a[i];
int m;
for(int i=1;i<=6;i++)
{
m=0;
for(int j=0;j<=N;)
{
m++;
j=j+i;
j=j+a[j];
}
cout<<m<<" ";
}
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Time limit exceeded | 1.069s | 6024 KiB | ||||
2 | Accepted | 3ms | 1920 KiB | ||||
subtask2 | 0/25 | ||||||
3 | Accepted | 3ms | 2136 KiB | ||||
4 | Wrong answer | 3ms | 2344 KiB | ||||
5 | Time limit exceeded | 1.105s | 5876 KiB | ||||
6 | Accepted | 4ms | 3084 KiB | ||||
7 | Accepted | 20ms | 3896 KiB | ||||
subtask3 | 0/40 | ||||||
8 | Wrong answer | 3ms | 3056 KiB | ||||
9 | Accepted | 3ms | 3060 KiB | ||||
10 | Accepted | 4ms | 3328 KiB | ||||
11 | Wrong answer | 7ms | 3704 KiB | ||||
12 | Time limit exceeded | 1.105s | 7564 KiB | ||||
13 | Accepted | 19ms | 4268 KiB | ||||
14 | Time limit exceeded | 1.077s | 8732 KiB | ||||
15 | Time limit exceeded | 1.069s | 8064 KiB | ||||
subtask4 | 0/35 | ||||||
16 | Accepted | 4ms | 4008 KiB | ||||
17 | Time limit exceeded | 1.105s | 8048 KiB | ||||
18 | Time limit exceeded | 1.052s | 7848 KiB | ||||
19 | Wrong answer | 14ms | 4344 KiB | ||||
20 | Accepted | 14ms | 4452 KiB | ||||
21 | Wrong answer | 18ms | 4496 KiB | ||||
22 | Time limit exceeded | 1.105s | 7428 KiB | ||||
23 | Time limit exceeded | 1.059s | 7476 KiB | ||||
24 | Time limit exceeded | 1.085s | 9348 KiB | ||||
25 | Wrong answer | 953ms | 9624 KiB |