题解列表

筛选

c++偶数求和简单解法

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

冒泡排序法

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

c++字符串简单解法

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

1997: 日期换算

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

1989: 奇数个数

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

1988: 求总时间-----递归

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

1987: 考试评级

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int main() {     int sco……

发工资咯 (一往直前!贪心法)

摘要:###贪心法就是遵循某种规则,不断贪心地选取当前最优策略 解题思路: 题目问最少需要多少张人民币,每次都先选面值最大的,当剩余的钱不够一张最大的面值时再用次大的人民币 依次类推就找到了最优解。 ……