Click Here to go back to the homepage.

Quality-Adjusted Life-Year Solution:


#include <stdio.h>

int main(void) {
	double a, b, result=0;
	scanf("%d");
	while(scanf("%lf %lf", &a, &b) == 2){
		result += a * b;
	}
	printf("%lf", result);
	return 0;
}