Here is an introduction to the method of code weight reduction, which is easily overlooked by many people. The mathematical modeling competition will also check the code submitted by everyone in the appendix.
Method 1: Add your own comments to the code.
Everyone will definitely refer to many ready-made codes when competing, but there is a risk of repetition. After copying other people's code, you can annotate the code according to your own understanding, and you can annotate the logic, numerical transmission and even some functions of the code, which can effectively reduce the repetition rate of the code.
Method 2: Change the variable name of the code.
You can choose to change the names of variables in your code to reduce the repetition rate. When searching in text, you can use (Ctrl+F) to achieve one-key replacement, and you can change the name of a variable to full name or abbreviation, which can simply and effectively reduce the weight.
Method 3: Use Formula Editor
When reducing the repetition rate, you can choose to use formula editor to replace all the parts with high repetition rate with formulas, or insert text boxes. This is the simplest and quickest way, but the author does not advocate this kind of behavior. I hope everyone can write their own articles with their own ideas.
Method 4: Make a form.
Changing your own data or other lists to tabular format can avoid duplication in a limited way.