Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Problem Statement
- Krolik found a sheet of paper with an equation containing three positive integers: "a * b = c". This equation might be wrong, so Krolik is trying to make it correct by adjusting the numbers a, b, and c.
- You are given three ints a, b, and c. Return a int containing the minimum value of |A - a| + |B - b| + |C - c|, where A, B, and C are positive integers satisfying A * B = C.
Add Comment
Please, Sign In to add comment