From 4f984539f13bf619310b994e76c60bf77cc27cdb Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Tue, 26 Aug 2025 15:11:31 +0800 Subject: [PATCH] update --- README.md | 4 ++++ src/8/26/P2782.cpp | 1 + 2 files changed, 5 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..874f933 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +## 线性动态规划优化为O(nlogn)方法 +>如果是递增序列就lower_bound + +>如果是递减序列就手写二分 \ No newline at end of file diff --git a/src/8/26/P2782.cpp b/src/8/26/P2782.cpp index 8252ca9..e9c3dee 100644 --- a/src/8/26/P2782.cpp +++ b/src/8/26/P2782.cpp @@ -41,6 +41,7 @@ int main(){ } else { *it = x; } + pa(f); } std::cout << f.size() << std::endl; return 0;