城市建设AC代码(kruskal算法+并查集) 对于本题样例虚构地点6连接1,2,3,4,5,从而代替码头的功能(例如1,2,3,建设码头,等价于6站点建设三座联通1,2,3,的道路)5512413-12332454510-1101011我们使用kruskal算法:选取花费最低的路径1-3, 题解列表 2021年10月01日 0 点赞 0 评论 680 浏览 评分:9.9
题解 1048 指针偏移解法(C语言) 摘要:解题思路: 1,定义整型变量m,n,还有str字符串并获取数据 2,定义char类型的指针p1,指向str首地址   题解列表 2021年10月01日 0 点赞 0 评论 739 浏览 评分:0.0
温度转换—题解 解题思路:注意事项:参考代码:c=5*(float(input())-32)/9print('c={:.2f}'.format(c)) 题解列表 2021年10月01日 0 点赞 0 评论 1153 浏览 评分:6.0
分段函数—题解 摘要:解题思路:注意事项:如果使用elif,其实之前的条件就不用写了参考代码:x=int(input())if x<1: y=xelif x<10: y=2*x-1else: y=3*x-…… 题解列表 2021年10月01日 0 点赞 0 评论 805 浏览 评分:0.0
1461: 蓝桥杯基础练习VIP-FJ的字符串(C++ string函数) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int n; char i;…… 题解列表 2021年10月02日 0 点赞 3 评论 630 浏览 评分:9.9
拦截导弹(java) --最长上升子序列 最长上升子序:是指一个序列中最长的单调递增的子序列,不是必须要连续.####**思路:****最长上升子序**:核心的解题思想就是从前到后扫描数组,并在对每一个元素扫描时,利用动态规划思想确定到当前下标位置的最长上升子序列。这里需要注意的是因为上升子序列不是必须要连续, 题解列表 2021年10月02日 0 点赞 1 评论 506 浏览 评分:9.0
三个数字排序题解 摘要:解题思路:注意事项:参考代码:list=[int(a) for a in input().split()]list.sort()for i in list: print(i,end=" ")…… 题解列表 2021年10月02日 0 点赞 0 评论 879 浏览 评分:0.0
不一样的进制转换!!! 摘要:参考代码:#include <stdio.h>int main(void){ int x,a[10],i=0,j; scanf("%d",&x); while(x!=0) …… 题解列表 2021年10月02日 0 点赞 0 评论 571 浏览 评分:0.0
一位热心的老大爷-极简-结构清晰 摘要:```c #include int main(){ int a[1001]={0}; int n,num; int count=0; scanf("%…… 题解列表 2021年10月02日 0 点赞 0 评论 540 浏览 评分:0.0
A+B for Input-Output Practice (VII) 摘要:解题思路:注意事项:两个\n,我枯了参考代码:#include <stdio.h>int main(){ int a, b; while (scanf_s("%d %d", &a, &b)…… 题解列表 2021年10月02日 0 点赞 0 评论 817 浏览 评分:0.0