1712 | 2022-12-01 16:27:47 | Tina0731 | Ludak Harca | cpp11 | Time limit exceeded 0/100 | 1.1s | 3532 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;
while(t[hely]>0)
{
if(hely<n)
hely+=t[hely];
}
dob++;
}
cout<<dob<<" ";
}
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Time limit exceeded | 1.057s | 1844 KiB | ||||
2 | Time limit exceeded | 1.049s | 1348 KiB | ||||
subtask2 | 0/25 | ||||||
3 | Time limit exceeded | 1.069s | 1468 KiB | ||||
4 | Time limit exceeded | 1.037s | 2548 KiB | ||||
5 | Time limit exceeded | 1.072s | 2572 KiB | ||||
6 | Time limit exceeded | 1.044s | 2880 KiB | ||||
7 | Time limit exceeded | 1.057s | 2308 KiB | ||||
subtask3 | 0/40 | ||||||
8 | Time limit exceeded | 1.08s | 2944 KiB | ||||
9 | Time limit exceeded | 1.08s | 3016 KiB | ||||
10 | Time limit exceeded | 1.059s | 2428 KiB | ||||
11 | Time limit exceeded | 1.072s | 2388 KiB | ||||
12 | Time limit exceeded | 1.072s | 2764 KiB | ||||
13 | Time limit exceeded | 1.08s | 2868 KiB | ||||
14 | Time limit exceeded | 1.08s | 3164 KiB | ||||
15 | Time limit exceeded | 1.069s | 3196 KiB | ||||
subtask4 | 0/35 | ||||||
16 | Time limit exceeded | 1.052s | 2656 KiB | ||||
17 | Time limit exceeded | 1.057s | 3484 KiB | ||||
18 | Time limit exceeded | 1.06s | 2780 KiB | ||||
19 | Time limit exceeded | 1.044s | 2824 KiB | ||||
20 | Time limit exceeded | 1.065s | 3104 KiB | ||||
21 | Time limit exceeded | 1.1s | 3116 KiB | ||||
22 | Time limit exceeded | 1.07s | 3232 KiB | ||||
23 | Time limit exceeded | 1.057s | 3496 KiB | ||||
24 | Time limit exceeded | 1.032s | 3384 KiB | ||||
25 | Time limit exceeded | 1.06s | 3532 KiB |