Sir/maam, my answer is coming correct but still it is not getting submitted
hello @vageesha
a) use long long.
b) since array is not sorted , u need to find max first and then assign it to s.
c) since t is same and constant, multiply it later with ur answer(i.e initially assume t=1 and then solve whatever answer comes multily it with t and then take mod)
we are doing this to avoid overflow .
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.