Solution to the problem number 531 of AceptaelReto - 531.

Any questions do not hesitate to contact.


#include <bits/stdc++.h>
using namespace std;

int main(){
    double NR,NRH,NH,NHR,H,R;
    while(scanf("%lf %lf %lf %lf %lf %lf",&NR,&NRH,&NH,&NHR,&H,&R)==6){
        double percentageReplicants = 1-(NRH/NR);
        double percentageHumansAsReplicant = NHR/NH;
        double totalEliminated = percentageReplicants*R + percentageHumansAsReplicant*H;
        if(totalEliminated/10>percentageHumansAsReplicant*H) printf("APRUEBA\n");
        else printf("SUSPENDE\n");
    }
    return 0;
}

Don't miss anything.

Keep in touch with Isaac Lozano Osorio!