题解列表

筛选

C++ 最小绝对值

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int a[10], i = 0, te……

排队打水c++版

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

同因查找 题解

摘要:解题思路:这题题就相识与韩信点兵!暴力判断!注意事项:要换行!参考代码:#include<bits/stdc++.h>using namespace std;int main(){    for(in……

猴子吃桃的问题

摘要:解题思路:求原来的桃子数,这题也就是逆推法。注意事项:s初始值为1。参考代码:#include<bits/stdc++.h>using namespace std;int n,s=1;int main……

温度转换 题解

摘要:解题思路:直接套公式!注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;double f;int main(){     scanf("%l……

公约公倍 题解

摘要:解题思路:这题就是求两个数的最大公约数和最小公倍数。我就直接用函数做!注意事项:在调用函数前别忘了加上“__”!参考代码:#include<bits/stdc++.h>using namespace ……

1102: 明明的随机数

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int n,a[1005],t,s;int main() { cin>>n; fo……