Hướng dẫn và Quy định khi viết lời giải

Guidelines and Rules for Writing Solutions

## Guidelines - When writing a solution for a problem, navigate to the problem's page and find the link to the solution in the bottom right corner. - Use Markdown to write your solution. Learn more about Markdown [here](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax). Note that not all syntax from the link above is supported. - Write mathematical formulas using LaTeX, enclosed in dollar signs. - Once submitted, your solution will be reviewed immediately. If your solution is rejected, you may edit it based on feedback and resubmit it for review. - _If you encounter difficulties, join the Discord server and contact the admins for guidance_. ## Rules ### To ensure the quality of solutions, some updated rules include: - You need at least 50 points to write a solution. - Use professional, objective language. - Ensure that the solution does not contain excessive content unrelated to the problem. - The solution **must** be formatted. For example, "given array a, and n elements" will not be accepted. The correct format is "Given array $a$ and $n$ elements", or "Given array `a` and `n` elements" (prefer the first option as it is easier to read). - The solution must include the main idea to solve the problem. If possible, break it into several smaller hints. - For certain problems, it is necessary to prove the correctness of the algorithm. - The solution should not narrate the algorithm verbatim, and should avoid using terms specific to a programming language when possible (e.g., `vector` in C++). - Except for simple problems, solutions **MUST NOT** contain sample code, only **PSEUDO-CODE**.