Editorial for DMOPC '18 Contest 3 P2 - Bob and French Class
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.
Submitting an official solution before solving the problem yourself is a bannable offence.
Author:
For 10% of marks, we can try every possible arrangement of French words and English words, making sure that no three consecutive words are in French. It takes
For full marks, we will employ a dynamic programming approach. Let
Comments