题解列表
二级C语言-进制转换
摘要:解题思路:通过查阅资料得知一个十进制数通过短除法除8,其余数连起来可得到一个8进制数通过此特性可求解本题注意事项:参考代码:#include<iostream>using namespace std;……
sort排序,c++
摘要:解题思路:用sort排序解题注意事项: 注意但m<2时,不能进入for循环判断,会默认为质数参考代码:#include<iostream>#include <algorithm>using names……
for循环求解等差数列
摘要:解题思路:利用for循环求解此题即可注意事项:参考代码:#include<iostream>using namespace std;void dfs(int a){ int b = 2; ……
for循环求解同因查找
摘要:解题思路:利用for循环遍历范围数利用if判断是否符合条件输出符合条件的数注意事项:每行输出一个参考代码:#include<iostream>using namespace std;int main(……
for循环求解计负均正
摘要:解题思路:利用for循环拿到输入的所有数,放到数组中在拿到数的同时进行题目要求的操做,最后输出即可注意事项:参考代码:#include<iostream>using namespace std;int……
二级C语言-公约公倍
摘要:解题思路:参考链接:用更相减损术求解最大公约数与最小公倍数-Dotcpp编程社区注意事项:参考代码:#include<iostream>using namespace std;int temp;//定……