PROBABILITY MODEL
CodeChefOpen on judge ↗
Mr.A wants to go for a dinner tonight to a restaurant. Ms.B (who is Mr.A's love since childhood) is also planning to go to the same restaurant tonight. The probability that there will be a discount in the restaurant on that day is PD. There are two possible ways to reach the restaurant on foot or by bus. The probability that Mr.A will take the bus is PAB and that Ms.B will take the bus is PBB. Tra
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start