Preface
Here are some template wrappers that I personally use.
Limited to personal ability, there may be many deficiencies and loopholes, please be careful before using it directly without testing. Updates may lag behind my local documents, if you have any questions or reminders, you can leave a message in the comment area.
Full-text template tests are based on the following version information, please pay attention to version compatibility issues.
Windows, 64bit
G++ (ISO C++20)
stack=268435456
Turn on O2 optimization
At the same time, the following macro definitions may also be used:
#define int long long
#define endl "\n"
using LL = long long;
using ld = long double;
using PII = pair<int, int>;
using TII = tuple<int, int, int>;
Grammar Description
When defining a structure, we can introduce variable type encapsulation so that it can match different types according to our input.
struct Point {
};
When defining the structure, in order to facilitate the initialization of elements, we can initialize the empty structure.