Subtask is against the constrain

Constraints

subtask1 and constrain 3 vary from each other which one should be applied

  • 1≤T≤100
  • 1≤N≤103
    *ai∈{5,10,15} for each valid i

Subtasks

Subtask #1 (40 points): ai∈{5,10} for each valid i

It says that for 1st subtask the elements in array will be 5 and 10 only.
For second subtask the elements will be 5,10,15.
If you want to get correct answer (100points) you need to consider ai belongs to 5,10,15.

Hope it helps. Happy coding.

for subtask 1 just consider 5 and 10 but for all subtask consider 5 10 15

I have tried it but I didn’t get the complete points