From 4ae38aa62f5f3b8bf38410f02f3702c1a2170866 Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Wed, 21 Aug 2024 19:03:07 +0800 Subject: [PATCH] update --- .gitignore | 3 +++ 20240821/P1158/P1158.cpp | 35 +++++++++++++++++++++++++++++++++++ xmake.lua | 4 ++++ 3 files changed, 42 insertions(+) create mode 100644 20240821/P1158/P1158.cpp create mode 100644 xmake.lua diff --git a/.gitignore b/.gitignore index e257658..f166c26 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +/build +/.vscode +/.xmake # ---> C++ # Prerequisites *.d diff --git a/20240821/P1158/P1158.cpp b/20240821/P1158/P1158.cpp new file mode 100644 index 0000000..6a3d1fd --- /dev/null +++ b/20240821/P1158/P1158.cpp @@ -0,0 +1,35 @@ +#include +#include +#include +#include +using namespace std; + +const int MAX_N = 1e5+5; + +struct Dir{ + Dir(int x,int y):x(x),y(y){} + int x,y; + friend ostream& operator<<(ostream &os,Dir d){ + os<<"Dir { x="<