1000简单的a+b题解 摘要:解题思路:此题很简单,只需要将两个数相加即可。注意事项:并不是一组数据,而是多组,所以要用到while。重复输入输出就可以了。参考代码:#include<iostream>//所需头文件using n…… 题解列表 2022年03月27日 0 点赞 0 评论 372 浏览 评分:6.0
for循环实现,12行代码 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; str…… 题解列表 2022年03月27日 0 点赞 0 评论 380 浏览 评分:9.9
用while使输入输出简便化 摘要:参考代码:#include"iostream" int main() { char list[5],l=0; while(std::cin>>list[l])l++; std::cou…… 题解列表 2022年03月27日 0 点赞 0 评论 475 浏览 评分:9.9
运用循环小数的特点 摘要:解题思路:该题就是运用循环小数的特点:纯循环小数转化为分数:如0.4285742857…找到循环体42857,该循环体有5位,故而0.4285742857…就是42857/99999,这里有5个9这个…… 题解列表 2022年03月27日 0 点赞 0 评论 814 浏览 评分:7.1
自定义函数之数字后移 摘要:解题思路:利用两个数组,第一个数组保存数据,第二个数组完成后移拷贝注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ …… 题解列表 2022年03月27日 0 点赞 0 评论 414 浏览 评分:9.9
[编程入门]带参数宏定义练习 只需要swap函数就可以解决!!!! 摘要:解题思路:本题很简单!!!理解swap交换函数就可以注意事项:参考代码:#include <iostream>using namespace std;#define N(x,y) swap(x,y)i…… 题解列表 2022年03月27日 0 点赞 0 评论 319 浏览 评分:0.0
编写题解 1145: C语言训练-自由落体问题 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ int n; float…… 题解列表 2022年03月27日 0 点赞 0 评论 286 浏览 评分:0.0
编写题解 1144: C语言训练-自守数问题 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<math.h>using namespace std;int main(){ long long int i,…… 题解列表 2022年03月27日 0 点赞 0 评论 282 浏览 评分:0.0
编写题解 1142: C语言训练-立方和不等式 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; int sum = 0; int k …… 题解列表 2022年03月27日 0 点赞 0 评论 324 浏览 评分:0.0
编写题解 1139: C语言训练-求素数问题 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin>>n; for(int i=2…… 题解列表 2022年03月27日 0 点赞 0 评论 282 浏览 评分:0.0