Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

Modulo problem

$
0
0

given array Numerator[] = { a1 , a2 , a3 .. an } and Denominator[] = { b1 , b2 , b3 .. bn }

we have to find ((a1.a2.a3 ... an)/(b1.b2.b3 ... bn)) % P given that final value will always be a integer..


Viewing all articles
Browse latest Browse all 39796

Trending Articles