Limits 1s, 512 MB

Kinderbijslag (children's allowance) is a social security payment which is distributed to the parents or guardians of children, teenagers and in some cases, young adults. This benefit is meant to allay the expenses of care for a child, such as clothing, sports activities and so forth.

In the EU, the country responsible for your social security, including family benefits (child benefits, child-raising allowances and so on), depends on your economic status and your place of residence - not your nationality.

National laws determine the conditions under which parents are paid family benefits. Usually, parents are entitled to benefits in a given EU country:

  • if they work there
  • if they receive a state pension under that country's social security scheme (for example old-age, invalidity or survivor's pension)
  • or simply if they live there.

Beware that family benefits differ greatly within Europe.

Diaper costs have a huge impact on the cost of having a baby.To figure out the cost of diapers you also need to know how long your baby will be wearing diapers. Some researchers say that the average age for completion of “potty training” for a girl is about 34-36 months and for a boy it’s about 37.5-38 months.

Given amount of Kinderbijslag you will receive per month for 1 child , average per unit diaper cost and amount of diaper needed per month, you have to determine whether this Kinderbijslag is enough to cover the cost of diaper or not.


The first line of the input contains an integer T (1≤ T≤ 600) denoting the number of test cases. Each test case contains 3 integers M,P,N (0 ≤ M ≤ 500 ,10 ≤ P ≤ 100, 150 ≤ N ≤ 240) which indicates amount of kinderbijslag in EURO(€), per unit diaper cost in EURO CENT (1€ = 100 cents) and amount of diaper needed per month.


For each test case, print YES if Kinderbijslag is enough to allay the cost of diaper. Otherwise print NO.


65 23 160
25 23 160
Case 1: YES
Case 2: NO


Login to submit.


94% Solution Ratio
codebreaks007Earliest, Nov '16
nazmulashaFastest, 0.0s
codebreaks007Lightest, 131 kB
Nusab19Shortest, 103B
Toph uses cookies. By continuing you agree to our Cookie Policy.