题解列表

筛选

计算邮资(C++)

摘要:# include <bits/stdc++.h>  using namespace std; int main () { int n; char c; cin >> n >……

3049: 城市交通路网 Dijkstra

摘要:解题思路:单源最短路径, 寻找最小未确定最短距离节点t 更新所有节点最短距离注意事项:一项测试数据有误参考代码:#include<iostream> #include<cstring> using……

奖学金(结构体排序)

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>#include<cstring>using namespace std;struct Stu{……

数位排序(python)

摘要:``` hash_list=[[] for i in range(55)]#hash_list[n]为各位和为n的数值 hash_list_n=[0 for i in range(55)]#has……

暴力解决四平方和

摘要:###### 暴力解决这道题,我们用三重循环,前三个数确定了,再去判断后面的那个数是否符合条件,如果符合输出去就可以了,查找的时候不必从0开始,从上个值开始进行遍历,这道题建别用深搜,只能过80%的样……