Given a vector of pairwise coprime positive integers, p, and a vector of corresponding remainders, r, return a positive integer, d, which, when divided by each of the elements of p, produces the respective remainders r.
Example:
p = [3, 5, 7]
r = [2, 3, 2]
d = 23

Solution Stats

13 Solutions

6 Solvers

Last Solution submitted on Jun 03, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...