Editorial Template |
Some guidelines for writing the Editorial:
- Editorials are posted as Questions on http://discuss.codechef.com. It is a Question and Answer style Forum.
- The title of the question should be: "PROBLEMCODE - Editorial"
- Tags field is another important field to allow easy searching of the editorial. You need to enter the below mentioned tags for the editorial that you write:
- the word 'editorial'
- contest code (e.g., cook30 or jan13)
- level of difficulty (e.g., easy or cakewalk)
- the key topics in the problem - can be from Prerequisites section (e.g., greedy, dp, ad-hoc, math etc)
- You can view one of the editorials here. You can see all the editorials at the link: https://discuss.codechef.com/c/editorial
- Use the below template for writing your problem statements. This can used as is to start writing your editorial.
# PROBLEM LINK:
[Practice](https://www.codechef.com/problems/PROBLEMCODE)
[Div-2 Contest](https://www.codechef.com/CONTESTCODEB/problems/PROBLEMCODE)
[Div-1 Contest](https://www.codechef.com/CONTESTCODEA/problems/PROBLEMCODE)
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](https://www.codechef.com/users/author_nick)
*Tester:* [Tester's name](https://www.codechef.com/users/tester_nick)
*Editorialist:* [Editorialist's name](https://www.codechef.com/users/editorialist_nick)
# 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 https://en.wikibooks.org/wiki/LaTeX/Mathematics
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:
[details="Setter's Solution"]
indent whole code by 4 spaces
[/details]
[details="Tester's Solution"]
indent whole code by 4 spaces
[/details]
[details="Editorialist's Solution"]
indent whole code by 4 spaces
[/details]