P1433 吃奶酪(最短路) dp(i, s) 表示从 i 出发经过的点的记录为 s 的路线距离最小值
#include<bits/stdc.h>
#define int long long
using namespace std;
const int N 20;
signed main()
{ int n; cin >> n;vector<double>x(n 1),…
示例:
/*** brief how about if? show you here.* author wenxuanpei* email 15873152445163.com(query for any question here)*/
#define _CRT_SECURE_NO_WARNINGS//support c-library in Microsoft-Visual-Studio
#include <stdio.h>#define if_state…
list 1.list 的定义和结构 list 是双向链表,是C的容器模板,其接收两个参数,即 list(a,b) 其中 a 表示指定容器中存储的数据类型,b 表示用于分配器内存的分配器类型,默认为 list <int>; list 的特点:…