Skip to content
bradendubois edited this page Nov 24, 2021 · 8 revisions

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.

Clone this wiki locally