From e7fe368872c351d132dd599e375e71f22df25e23 Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Sat, 17 Aug 2024 12:01:11 +0800 Subject: [PATCH] update --- day14/P1941/P1941.cpp | 23 +++++++++++++++++++++++ xmake.lua | 6 +++++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 day14/P1941/P1941.cpp diff --git a/day14/P1941/P1941.cpp b/day14/P1941/P1941.cpp new file mode 100644 index 0000000..5509aae --- /dev/null +++ b/day14/P1941/P1941.cpp @@ -0,0 +1,23 @@ +#include +#include +using namespace std; + +const int MAX_N=1e4+5; +int n,m,k; +int x[MAX_N],y[MAX_N],l[MAX_N],h[MAX_N]; + +int main(){ + ios::sync_with_stdio(false),cin.tie(0),cout.tie(0); + cin>>n>>m>>k; + for(int i=1;i<=n;i++){ + cin>>x[i]>>y[i]; + } + for(int i=1;i<=k;i++){ + int p; + cin>>p; + cin>>l[p]>>h[p]; + } + for(int i=1;i<=n;i++){ + for(int j=0;j<=) + } +} \ No newline at end of file diff --git a/xmake.lua b/xmake.lua index 7918c3c..84766eb 100644 --- a/xmake.lua +++ b/xmake.lua @@ -185,4 +185,8 @@ target("P4141") target("P6567") set_rundir("day14/P6567") - add_files("day14/P6567/P6567.cpp") \ No newline at end of file + add_files("day14/P6567/P6567.cpp") + +target("P1941") + set_rundir("day14/P1941") + add_files("day14/P1941/P1941.cpp") \ No newline at end of file