From 8e805915d64a2f628032c9e125f74dbedb90b7a2 Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Fri, 15 Nov 2024 12:00:53 +0800 Subject: [PATCH] update --- src/P1352/P1352.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/P1352/P1352.cpp diff --git a/src/P1352/P1352.cpp b/src/P1352/P1352.cpp new file mode 100644 index 0000000..4c4f291 --- /dev/null +++ b/src/P1352/P1352.cpp @@ -0,0 +1,23 @@ +#include +#include +#include + +using std::cin, std::cout; +using ll = int64_t; +const ll max_n = 6e3+5; +ll n, r[max_n]; +std::vector sons[max_n]; + + + +int main(){ + cin>>n; + for(ll i{1};i<=n;i++){ + cin>>r[i]; + } + for(ll i{1};i>l>>k; + sons[k].emplace_back(l); + } +} \ No newline at end of file