You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.