题解列表

筛选

1997: 日期换算

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> #include<cmath> using namespace std; int mai……

温度转换Python

摘要:解题思路:注意事项:参考代码:F=float(input())c=5*(F-32)/9print("c=%.2f"%c)……

c++stl sort简单解法

摘要:解题思路:sort函数在algorithm库中sort(a,a+i)升序排序注意事项:参考代码:#include<iostream> #include<iomanip>#include<math.h>……

c++sort简单解法

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip>#include<math.h>#include<algorithm>using namespac……

c++字符串简单解法

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<stdlib.h>using namespace std;int main(){ int a,n; cin>>a>……

冒泡排序法

摘要:解题思路:先把插入值放进数组中,再对数组进行冒泡排序注意事项:参考代码:#include<iostream>using namespace std;int main(){  int arr[10]; ……

选择排序(c语言小白)

摘要:解题思路:用数组来存放这10个数,然后分别在数组里找到第一.二.三...小的分别赋值给下标为arr[0],arr[1].arr[2]....的注意事项:每一次排列好第一小的,就排列其他剩余的第一小的。……

找第一个只出现一次的字符

摘要:解题思路:可用列表将出现一次的字符打包注意事项:打包后,应先判断列表是否为空参考代码:a=input()ls=[]for i in a:    if (a.count(i)==1):        l……