qaly - bradendubois/competitive-programming GitHub Wiki
Quality-Adjusted Life-Year
ID: qaly
Difficulty: 1.3
CPU Time: 1 second
Memory: 1024 MB
Solution
The sample data seems a bit dark, but it's a basic loop where q and y on each line are multiplied and added to a running total, which is output at the end.