很简单,三行搞定,容易理解 摘要:解题思路:注意事项:参考代码:def func(c): return 32+c*9/5for i in range(-100,151,5): print('c={}->f={}&#…… 题解列表 2022年05月03日 0 点赞 0 评论 377 浏览 评分:0.0
十六进制转八进制(C++) 摘要:解题思路:将十六进制先转为十进制,再转为八进制参考代码:#include<iostream>#include<cstring>#include<cmath>using namespace std;in…… 题解列表 2022年05月03日 1 点赞 0 评论 656 浏览 评分:0.0
我写的有点复杂,死办法,将就看就好了 摘要:解题思路:注意事项:参考代码:list=list(map(int,input().split()))list2=[i for i in list if i>=0]list3=[v for v in l…… 题解列表 2022年05月03日 0 点赞 0 评论 397 浏览 评分:0.0
深搜c++ 题目陷阱 摘要:解题思路:注意事项:输入cin>>n>>m通常默认为行数和列数,这里题目规定先输入列数,在输入行数参考代码:#include<iostream> using namespace std; int …… 题解列表 2022年05月03日 0 点赞 0 评论 402 浏览 评分:0.0
0/1背包问题,一维数组求解 摘要:/* 背包问题基本01: 递推公式: w[i]: 商品占用价值; val[i]: 商品价值; f[v] = max(f[v],f[v-w[i]]+val[i]) */ ``` #i…… 题解列表 2022年05月03日 0 点赞 0 评论 588 浏览 评分:9.9
编写题解 1027: [编程入门]自定义函数处理最大公约数与最小公倍数(递归法) 摘要:解题思路:注意事项:参考代码:m,n=map(int,input().split())def maxgongyue(m,n): if n != 0 : return maxgong…… 题解列表 2022年05月03日 0 点赞 0 评论 447 浏览 评分:0.0
数据结构-折半插入排序 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[100005],n;int main(){ cin>>n; for…… 题解列表 2022年05月03日 0 点赞 0 评论 436 浏览 评分:0.0
数据结构-直接插入排序 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[100005],n;int main(){ cin>>n; for…… 题解列表 2022年05月03日 0 点赞 0 评论 558 浏览 评分:0.0
绝对值排序 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std; bool cmp(int a, int b);int main(){ int…… 题解列表 2022年05月03日 0 点赞 0 评论 324 浏览 评分:0.0
C语言训练-排序问题<2> 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[15];int main(){ for(int i=0;i<10;i++…… 题解列表 2022年05月03日 0 点赞 0 评论 351 浏览 评分:0.0