Official algorithmic problem description and constraints.
In the recent RCB vs CSK match, RCB batted first and scored π runs while CSK batted second and scored π runs.
It is known that RCB qualifies to the playoffs if they win by at least 18 runs, otherwise CSK qualify. Knowing the final scores of both teams, find out who qualified to the playoffs.
Detailed video explanations, mathematical intuition, and clean C++ implementation code.