题解列表
编写题解 1044: [编程入门]三个字符串的排序,自己造轮子的那种
摘要:~~其实这道题目哈,如果是调用方法,很简单的,但是学习嘛就是要理解其中的原理,今天我用自定义方法来写的。~~
解题思路:
一看题目,就知道是排序了;
首先我得读取三个字符串数组吧,那我定义一个字……
2131-01背包-动态规划
摘要:#include<stdio.h>
int a[31][201];
int max(int a,int b)
{
return a>b?a:b;
}
void beibao(int M,……
编写题解 1019: [编程入门]自由下落的距离计算
摘要:解题思路:for循环注意事项:求总路程的时候要减去最后一次反弹的高度参考代码:#include<stdio.h>int main(){ int n; float h; scanf("……
Minesweeper(c 语言)简单明了
摘要:解题思路:注意事项:参考代码:#include<stdio.h>char sweep(char a[][100],int n,int m){ int i,j,k=0; char coun……
构造数字排序(C++)
摘要:解题思路:使用数字排序 控制格式输出注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c,……
自定义函数之整数处理
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10]; shuru(a); xunhuan(a); output(a); return 0;……
1113: C语言考试练习题_保留字母
摘要:#include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cin >> s;
for……
1019: [编程入门]自由下落的距离计算
摘要:解题思路:把球落下和上升看做一个反弹周期,每个反弹周期经过的距离等于每个反弹周期时反弹高度*3参考代码:#includeint main(){ double m,n,sum=0; scan……