-
Notifications
You must be signed in to change notification settings - Fork 2
fiftyshades
bradendubois edited this page Nov 11, 2021
·
8 revisions
ID: fiftyshades
Difficulty: 1.5
CPU Time: 1 second
Memory: 1024 MB
For this, read in each of the N lines, and convert them to lowercase as they're read in. Check the string to see if it contains "pink" or "rose", and if so, increment a tally. At the end, if the tally is non-zero, output it, otherwise "I must watch Star Wars with my daughter".