Kinderbijslag

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.


This is a companion discussion topic for the original entry at https://toph.co/p/kinderbijslag

whats wrong here?

#include<iostream>
using namespace std;
int main()
{
    int i, t, m, p, n;
    double temp;
    cin >> t;

    for(i=1;i<=t;i++)
    {
        cin >> m >> p >> n;
        temp=(p*n)/100.0;
        if(m>=temp)
        {
            cout << "YES" << endl;
        }
        else if(m<temp)
        {
            cout << "NO" << endl;
        }
    }
}

Output should be “Case 1:NO”, not only “NO”.

1 Like