Tips and notes:
Details are very important. If you want to figure out a simulated question, there must be a reason for it ~ The question maker will surely put a lot of pitfalls for you, so you must have a rough idea framework before coding, and then think about it in writing code.
For example: [bzoj] 3300: [usaco Feb] Best parenthesis (simulation)
At first, I did not pay attention to the boundary issue, so wa was always exploding. Do not commit this problem any more. Do not rush to compile the problem after completing the code, check the static error first, and finally find that there is no error before compiling.
Also, if some boundaries are not well handled, big data is not wa or Re, so it is best to create big data on your own. At the same time, extreme data contains the largest and smallest data, so we need to prepare the largest and the smallest data.
Summary: Simulation