Editorial for Appleby Contest '20 P3 - Ridiculous String
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:
Subtask 1
The answer is always
Time Complexity:
Subtask 2
If an answer exists, the prefix of the subsequence of
Time Complexity:
Memory Complexity:
Subtask 3
The solution is the same as the previous subtask except you don't explicitly copy
Time Complexity:
Memory Complexity:
Subtask 4
Construct an array
Time Complexity:
Comments