So i have a value x which is equal to (a+b+c)%m

Now i have another value d that i need to substract from x such that the new val is equal to

(a+b+c-d)%m

Does anyone know the proper formula for it?

Eg

(3+4)%3=1

Now if i try to substract 2 from 1 i ll get -1

But the actual answer should be

(3+4-2)%3=2

This is from Ongoing Long. I don’t know if I should answer this or not.

I did not ask this question based on the ongoing long.But if you think it will affect the ongoing long dont answer.

you can simply google it.

But I can help you…type this in Google:- Arithmetic Modulo Properties and you will get your answer

karan in div 2 6th question what is N(L) and N® it sucks me thoda sa batao…please

konsa wala hai ye…

Muje toh is baar koi bhi question nhi aa raha hai ree

reallly … ? ?? ? ? ?

Yes

achha. konsa que ? XD

haa to password de do muje. I won’t copy as you don’t know anything XD

profile to kuch or hi bolti hai…yrr thoda sa batao what is N(L) and N®…question me nhi bta rakha acch se ,mene pucha bhi

Diya to hai que me. Baki k que pe focus Karo

N(l) and N® are the number of digits in ‘l’ and ‘r’

Kaash ye question muje aata

Ram bharose Hindu Hotel Hai Yahaan

matlab if L =349 then N(L) = 3 na

Yes…

(a+b **-c + M ) % M**

when ever you see **- terms** add + M then take modulo

if a+b-c = x where x is -ve then

do ( x + j*M) % M where j*M > abs(x)