Skip to main content
Admissions guidance, study banks, and career tools — get started on Shalyam

Evaluate Division

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.

Rewards · v2.1

Get Exclusive Insights with Every Issue

Join Shalyam Newsletter

Stay ahead in education, research, and innovation—straight to your inbox.