2798: 整数序列的元素最大跨度值题解 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,maxx= -1e18 ,minn=1e…… 题解列表 2024年12月22日 3 点赞 0 评论 282 浏览 评分:10.0
树型dp #2484: 信息学奥赛一本通T1579-皇宫看守(c++) 不是很详细.. 摘要:``` #include #include #include using namespace std; const int N = 1510; int n; int h[N]…… 题解列表 2024年12月22日 0 点赞 0 评论 382 浏览 评分:0.0
编写题解 2798: 整数序列的元素最大跨度值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long n,maxx=-1e18,minn…… 题解列表 2024年12月22日 0 点赞 0 评论 498 浏览 评分: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 评论 492 浏览 评分:0.0
少年 无爱可破情局 无情方可破全局 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义全局变量 int n, m, a[110], sum[110];…… 题解列表 2024年12月21日 0 点赞 0 评论 250 浏览 评分:0.0
c++,编写题解 3132: 重载函数练习1 摘要:主要是输入顺序不固定参考代码:#include<iostream> #include <string.h> using namespace std; int fun(char a[]) { …… 题解列表 2024年12月21日 0 点赞 0 评论 367 浏览 评分:0.0
我也想要能量项链 摘要:解题思路: 区间DP解法注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int…… 题解列表 2024年12月21日 0 点赞 0 评论 437 浏览 评分:0.0
树型dp #信息学奥赛一本通T1578-战略游戏 摘要:`f[u][0] 表示 u点上不放士兵的最小花费` `f[u][1] 表示 u点上放士兵的最小花费` 如果u点不放士兵,那么其子节点必须放士兵,不然这两条边不能同时被瞭望 如果u点放…… 题解列表 2024年12月21日 0 点赞 0 评论 201 浏览 评分:0.0
树形DP #1319: 没有上司的晚会(C++) 摘要:[TOC] ------ # 题目解读 ## 题目描述 N 个 职员,编号1~N 他们的关系就像一棵以校长为根的树,父节点就是子节点的直接上司。 每个职员有一个快乐指数,用整数…… 题解列表 2024年12月21日 0 点赞 0 评论 292 浏览 评分:0.0