算法#题解
文章平均质量分 68
孑然-520
这个作者很懒,什么都没留下…
展开
-
洛谷每日一题2020_10_19
CF1175D Array Splitting 思路:数组分成K段,第K段的数会被累加k次,所以可以把题目改成用后缀和数组找到累加值最大的k-1段,再加上整个数组的和。 #include <iostream> #include <algorithm> using namespace std; const int N = 3e5+10; typedef long long ll; ll a[N]; int main(){ int n,k; ll ans=0;原创 2020-10-21 21:20:59 · 111 阅读 · 0 评论 -
Uva548 Tree(十多次RE自闭)
题目描述 You are to determine the value of the leaf node in a given binary tree that is the terminal node of a path of least value from the root of the binary tree to any leaf. The value of a path is the ...原创 2020-02-22 17:32:56 · 192 阅读 · 0 评论