Skip to content

haypoints

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.

Clone this wiki locally