Editorial for Another Contest 4 Problem 8 - DMOJ!


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.

The function to implement was to count the number of subsequences of the given string that were equal to DMOJ.

The problem statement clues the contestant to look at contests a month and a half ago, and motivates the contestant to eventually look at valentines19j3. The problem title indicates that instead of looking for subsequences of love, one should look for subsequences of DMOJ.


Comments

There are no comments at the moment.