Evaluate Division
Medium
Union-Find (Advanced)
Given equations a / b = value and queries c / d, print the answer to each query with five decimals, or -1.00000 if it cannot be determined.
Constraints
1 <= e, q <= 20 0.0 < value <= 20.0
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.