【XCPC模板 - 个人模板封装】几何

发布时间 2023-08-21 01:39:04作者: hh2048



$\huge \boxed{\pmb {\mathfrak{I\ took\ the\ one\ less\ traveled\ by,}}}$
$\huge \boxed {\pmb {\mathfrak{\ and\ that\ has\ made\ all\ the\ difference.}}}$






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.