Water Jug Problem
With jugs of capacity x and y litres and unlimited water, print YES if you can measure exactly z litres in total in the two jugs, otherwise NO.
Constraints
0 <= x, y, z <= 10^9
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.