Back to Cosmos

Problem Link:

code/online_challenges/src/codechef/EID2/README.md

latest628 B
Original Source

Problem Link:

EID2

Description

Eidi gifts are a tradition in which children receive money from elder relatives during the Eid celebration.

Chef has three children (numbered 1,2,3) and he wants to give them Eidi gifts. The oldest child, Chefu, thinks that a distribution of money is fair only if an older child always receives more money than a younger child; if two children have the same age, they should receive the same amounts of money.

For each valid i, the i-th child is Ai years old and it received Ci units of money. Determine whether this distribution of money is fair.