Square brackets


can u please tell me why my code is giving wrong ans ?

Did you copy the correct code?

@sjduttabbsr2017
your answer is getting overflowed. Please check your modulous.
use %mod at every step instead of just once

1 Like

https://ide.codingblocks.com/s/234784 still showing wrong answer

@sjduttabbsr2017
refer to this modified code here