# TEST EDITORIAL

Practice
Div-2 Contest
Div-1 Contest
In case the contest did not have two separate pages for Div-1 and Div-2, you can delete one of these above lines.

Author: Setter’s name
Tester: Tester’s name
Editorialist: Editorialist’s name

# DIFFICULTY:

CAKEWALK, SIMPLE, EASY, MEDIUM or HARD.
Intermediate levels like SIMPLE-EASY, EASY-MEDIUM, MEDIUM-HARD are also possible.

# PREREQUISITES:

Greedy, DP, Math etc. Ideally with the links to Wikipedia

# PROBLEM:

A short and concise description of the problem statement.

# QUICK EXPLANATION:

Should contain concise explanation, clear to advanced coders.

# EXPLANATION:

Very detailed explanation ideally with code snippets.
Ideally editorialist should write his own solution
and write editorial strictly following his solution.

For adding mathematical expressions, LaTeX is required, which is nicely explained at LaTeX/Mathematics - Wikibooks, open books for an open world

Some examples of latex here. (Latex is always enclosed in between \$ sign)

ans = \sum_{i = 1}^{N} a_i^k \bmod M

\frac{num}{den}

\leq, \geq, \neq, \pm

# ALTERNATE EXPLANATION:

Could contain more or less short descriptions of possible other approaches.

# SOLUTIONS:

Setter's Solution

indent whole code by 4 spaces

Tester's Solution

indent whole code by 4 spaces

Editorialist's Solution

indent whole code by 4 spaces