相关文章
2023-9-14 数字三角形
题目链接:数字三角形 #include <iostream>
#include <algorithm>using namespace std;const int N 510, INF 1e9;int n;
int a[N][N];
int f[N][N];int main()
{cin >> n;for(int i 1; i < n; i )for(int j 1; j < i; j )cin >> …
建站知识
2025/1/8 21:40:55
基于若依框架实现markdown在线编辑
基于若依框架实现markdown在线编辑
1. 下载mavon-editor
npm install mavon-editor --save2. 打开main.js文件, 添加如下
// markdown组件
import { mavonEditor } from "mavon-editor";
import "mavon-editor/dist/css/index.css";// markdown组件
Vue…
建站知识
2025/2/23 17:23:28
Definition and properties of the Gamma function
See https://math.libretexts.org/Bookshelves/Analysis/Complex_Variables_with_Applications_(Orloff)/14%3A_Analytic_Continuation_and_the_Gamma_Function/14.02%3A_Definition_and_properties_of_the_Gamma_function
勒让德倍元公式(Legendre duplication fo…
建站知识
2025/2/23 17:28:53
CSS 修改el-calendar的样式,自定义样式
需求:自定义elementui的日历的样式;给符合条件的时间展示红点。
elementui的原始样式: 目标样式: 代码实现:
html:
<el-calendar v-model"calendarValue"><template slot"dateCell" …
建站知识
2025/1/21 5:57:14
linux 下实现一个进度条
倒计时
理解 printf 打印的内容是被放在输出缓冲区的 fflush(stdout) 刷新 输出缓冲区;\n 也是一种刷新的策略我们称之为行刷新 理解一下回车换行 首先:回车是回车 换行是换行
回车是回到这一行的开头 换行是换到下一行
所以我们平时使用的 Enter 键 …
建站知识
2024/11/1 19:51:11
uniapp抽取组件绑定事件中箭头函数含花括号无法解析
版本: "dcloudio/uni-ui": "^1.4.27", "vue": "> 2.6.14 < 2.7"...
箭头函数后含有花括号的时候, getData就拿不到val参数 , 解决办法就是去除花括号
// 错误代码:
<SearchComp change"(val) > { getData({ val …
建站知识
2025/2/23 17:29:34
docker学习:dockerfile和docker-compose
学习如何使用dockerfile 以下内容,部分来自gpt生成,里面的描述可能会出现问题,但代码部分,我都会进行测试。 1. 需求 对于一个docker,例如python,我们需要其在构建成容器时,就有np。有以下两种方…
建站知识
2025/2/23 17:22:13
算法分析与设计编程题 回溯法
装载问题
题目描述 解题代码
递归回溯
// goods[i]表示货物i的重量, c1,c2分别表示货船1和货船2的载重量
vector<vector<int>> optimalLoading(vector<int>& goods, int c1, int c2) {int n goods.size(); // 货物数量int maxSum 0; // 当前最大载货…
建站知识
2025/2/23 9:42:06