Thanks for participation!
The official solution of E is $$$O(n)$$$. If your solution of E has a larger complexity, I recommend reading the tutorial.
[problem:1988A]
Hint 1
Solution
[problem:1988B]
[problem:1988C]
[problem:1988D]
[problem:1988E]
[problem:1988F]