Project code 1.0

problem link
Can someone help me regarding why my solution gives WA?
My submission

You have spelled possible as “POSSSIBLE”

1 Like

Ohh so silly of me, Thanks a lot for pointing out.

what is the approach for “help the carpenter” problem?

This is a basic dp question.

This might help you.
One thing you have to do extra is that there are multiple possibilities of the same element .
1 Like

Can you please tell what is wrong in this code?


Can be solved using NTT.

1 Like

you have wrongly written POSSIBLE as POSSSIBLE.

1 Like