编写题解 2798: 整数序列的元素最大跨度值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long n,maxx=-1e18,minn…… 题解列表 2024年12月22日 0 点赞 0 评论 432 浏览 评分:0.0
编写题解 2796: 求整数的和与均值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int main(){ long long n,sum=0;cin>>n; for…… 题解列表 2024年12月22日 1 点赞 0 评论 421 浏览 评分:0.0
少年 无爱可破情局 无情方可破全局 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义全局变量 int n, m, a[110], sum[110];…… 题解列表 2024年12月21日 0 点赞 0 评论 176 浏览 评分:0.0
c++,编写题解 3132: 重载函数练习1 摘要:主要是输入顺序不固定参考代码:#include<iostream> #include <string.h> using namespace std; int fun(char a[]) { …… 题解列表 2024年12月21日 0 点赞 0 评论 298 浏览 评分:0.0
我也想要能量项链 摘要:解题思路: 区间DP解法注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int…… 题解列表 2024年12月21日 0 点赞 0 评论 375 浏览 评分:0.0
树型dp #信息学奥赛一本通T1578-战略游戏 摘要:`f[u][0] 表示 u点上不放士兵的最小花费` `f[u][1] 表示 u点上放士兵的最小花费` 如果u点不放士兵,那么其子节点必须放士兵,不然这两条边不能同时被瞭望 如果u点放…… 题解列表 2024年12月21日 0 点赞 0 评论 149 浏览 评分:0.0
树形DP #1319: 没有上司的晚会(C++) 摘要:[TOC] ------ # 题目解读 ## 题目描述 N 个 职员,编号1~N 他们的关系就像一棵以校长为根的树,父节点就是子节点的直接上司。 每个职员有一个快乐指数,用整数…… 题解列表 2024年12月21日 0 点赞 0 评论 224 浏览 评分:0.0
CoKe 的天照 摘要:解题思路:注意事项:参考代码:DP#include"bits/stdc++.h" using namespace std; int t,m,n; int dp[11][11]; int mai…… 题解列表 2024年12月20日 0 点赞 0 评论 360 浏览 评分:0.0
炒股需谨慎 除非你也有预知能力 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 全局变量声明 int t, n, a[110000], dp1[11…… 题解列表 2024年12月19日 0 点赞 0 评论 145 浏览 评分:0.0