摘要:
原题链接 题解1: \(Code1\) #include<bits/stdc++.h> using namespace std; int a[255]={0}; int f[255][255]={0}; int main() { int n,ans=0; cin>>n; for(int i=1;i< 阅读全文
posted @ 2024-01-26 23:10
纯粹的
阅读(13)
评论(0)
推荐(0)
摘要:
原题链接 方法一 看到区间和,自然想到前缀和 用双指针维护 code #include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; vector<int> pres(n+5); pres[0]=0; for(int 阅读全文
posted @ 2024-01-26 15:24
纯粹的
阅读(27)
评论(0)
推荐(0)
摘要:
原题链接 前记 1.环的问题可以转换成遍历以所有元素开头的链 2.对于某一条链,其最大值等于中间某两段最大值的乘积,这样就把大问题转换成了小问题 细节请看代码 #include<bits/stdc++.h> #define ll long long using namespace std; ll p 阅读全文
posted @ 2024-01-26 13:39
纯粹的
阅读(67)
评论(0)
推荐(0)
摘要:
1.你是怎么想到这样做的? 2.哪些地方是本题的核心?你是如何处理的? 3.有哪些细节需要注意 阅读全文
posted @ 2024-01-26 12:16
纯粹的
阅读(67)
评论(2)
推荐(0)

浙公网安备 33010602011771号