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 11, 2021 · 7 revisions
Hay Points
ID: haypoints
Difficulty: 2.1
CPU Time: 1 second
Memory: 1024 MB
Solution
For this, simply map each word to its value, and for each case, iterate through word by word, and if the word is mapped, add its value to a total. After each case, output the total.