kruskal找(判断)最短路 摘要:#include<iostream> #include<algorithm> #include<cstring> using namespace std; const int N=1e5+…… 文章列表 2024年07月11日 0 点赞 0 评论 160 浏览 评分:0.0
染色法判二分图 摘要://二分图:图中不含奇数环 一条边两个点的颜色需不同 #include<iostream> #include<cstring> #include<algorithm> using na…… 文章列表 2024年07月11日 0 点赞 0 评论 176 浏览 评分:0.0
匈牙利算法(找对象) 摘要://形象:男的女的互有好感,现在为男的(a)找女朋友(b)且保证没有脚踏多只船 #include<iostream> #include<algorithm> #include<cstring> …… 文章列表 2024年07月12日 0 点赞 0 评论 166 浏览 评分:0.0
竞选班长竞选班长竞选班长竞选班长竞选班长竞选班长竞选班长竞选班长竞选班长竞选班长 摘要:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e5;ll tong[N];int …… 文章列表 2024年07月15日 0 点赞 0 评论 324 浏览 评分:0.0
1848 求输入数据绝对值 摘要:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){ double a; while(cin…… 文章列表 2024年07月18日 0 点赞 0 评论 292 浏览 评分:0.0
Seq2Seq的学习总结 摘要:【原文1】:https://blog.csdn.net/sikh_0529/article/details/129148504 【原文2】:https://zhuanlan.zhihu.com/p/…… 文章列表 2024年07月19日 0 点赞 0 评论 346 浏览 评分:0.0
平均值计算解题思路及C代码 摘要:参考代码: #include int main() { char a[10]; int i,n=0,sum=0; fl…… 文章列表 2024年08月15日 0 点赞 0 评论 232 浏览 评分:0.0
dp:01背包 二维加一维 摘要://01背包:按照y总分析所写 用于学习记录 #include<iostream> using namespace std; const int N=1010; int v[N],w[N]…… 文章列表 2024年08月16日 0 点赞 0 评论 148 浏览 评分:0.0
dp:完全背包:三维,二维,一维 摘要://完全背包 #include<iostream> using namespace std; const int N=1010; int n,m; int v[N],w[N]; int…… 文章列表 2024年08月16日 0 点赞 0 评论 203 浏览 评分:0.0
【编程入门】温度转换 摘要:使用format格式或者直接输出的方式输出c=-40 1.获取输入的华氏温度 2.进行换算 3.输出摄氏温度 a=float(input()) c=5*(a-32)/9 #…… 文章列表 2024年09月08日 0 点赞 0 评论 172 浏览 评分:0.0