Chef and Function MOD for negetive numbers

chef and function (FUNC) June Challenge:
is -1%1000000007 to be taken as -1 or is it to be taken as 1000000006.
Please answer this because it is creating confusion.

Its 1000000006.


thanks @v_akshay

Hey ap_hawkdown, Kindly avoid asking questions related to ongoing contest. It is against our Code Of Conduct.

1 Like

how is it 10^9+6?

You should try both ways. One of them will get accepted if everything else is correct. Also, chef asks for mod generally to get a positive answer.