Editorial for Back From Summer '17 P1: Pithy Pastimes


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

Author: kobortor

Input N, store it as an integer.

Keep a counter of how many words the teacher writes down.

Run a loop N times. In each loop, input a single string (word). If that word has a length of 10 or less, increment the counter by 1.

Finally, print the counter as the answer.


Comments

There are no comments at the moment.