编写题解 1141: C语言训练-百钱百鸡问题 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ for(int i=0;i<100;i++){ f…… 题解列表 2022年03月26日 0 点赞 0 评论 453 浏览 评分:0.0
编写题解 1138: C语言训练-求矩阵的两对角线上的元素之和 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[10][10]; int n; int …… 题解列表 2022年03月27日 0 点赞 0 评论 319 浏览 评分:0.0
编写题解 1139: C语言训练-求素数问题 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin>>n; for(int i=2…… 题解列表 2022年03月27日 0 点赞 0 评论 328 浏览 评分:0.0
编写题解 1142: C语言训练-立方和不等式 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; int sum = 0; int k …… 题解列表 2022年03月27日 0 点赞 0 评论 366 浏览 评分:0.0
编写题解 1144: C语言训练-自守数问题 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<math.h>using namespace std;int main(){ long long int i,…… 题解列表 2022年03月27日 0 点赞 0 评论 329 浏览 评分:0.0
蓝桥杯2020年第十一届国赛真题-天干地支 摘要:```c #include typedef struct tiangan_dizhi { int n; char c[10]; }td; int main() { td tg[10…… 题解列表 2022年03月27日 0 点赞 0 评论 691 浏览 评分:0.0
编写题解 1145: C语言训练-自由落体问题 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ int n; float…… 题解列表 2022年03月27日 0 点赞 0 评论 356 浏览 评分:0.0
[编程入门]带参数宏定义练习 只需要swap函数就可以解决!!!! 摘要:解题思路:本题很简单!!!理解swap交换函数就可以注意事项:参考代码:#include <iostream>using namespace std;#define N(x,y) swap(x,y)i…… 题解列表 2022年03月27日 0 点赞 0 评论 387 浏览 评分:0.0
题解 1738: 排序 摘要:解题思路:冒泡排序我首先定义的就是n,然后定义数组,输入,判断n对数据进行排序时需要两个变量i,j,不断遍历,每一次循环确定一个位置最后输出注意事项:我考虑了n的大小,冒泡排序的变量,可是一直出现错误…… 题解列表 2022年03月27日 0 点赞 0 评论 459 浏览 评分:0.0
数据结构-链表的基本操作 摘要:注意: 别用gets()来获取字符串,不然会跑不通 代码:按模块编写函数即可 #include #include #include int l…… 题解列表 2022年03月27日 0 点赞 0 评论 522 浏览 评分:0.0