编写题解 1138: C语言训练-求矩阵的两对角线上的元素之和 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[10][10]; int n; int …… 题解列表 2022年03月27日 0 点赞 0 评论 350 浏览 评分:0.0
编写题解 1139: C语言训练-求素数问题 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin>>n; for(int i=2…… 题解列表 2022年03月27日 0 点赞 0 评论 359 浏览 评分:0.0
编写题解 1142: C语言训练-立方和不等式 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; int sum = 0; int k …… 题解列表 2022年03月27日 0 点赞 0 评论 395 浏览 评分:0.0
编写题解 1144: C语言训练-自守数问题 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<math.h>using namespace std;int main(){ long long int i,…… 题解列表 2022年03月27日 0 点赞 0 评论 364 浏览 评分: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 评论 714 浏览 评分:0.0
编写题解 1145: C语言训练-自由落体问题 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ int n; float…… 题解列表 2022年03月27日 0 点赞 0 评论 391 浏览 评分:0.0
[编程入门]带参数宏定义练习 只需要swap函数就可以解决!!!! 摘要:解题思路:本题很简单!!!理解swap交换函数就可以注意事项:参考代码:#include <iostream>using namespace std;#define N(x,y) swap(x,y)i…… 题解列表 2022年03月27日 0 点赞 0 评论 417 浏览 评分:0.0
题解 1738: 排序 摘要:解题思路:冒泡排序我首先定义的就是n,然后定义数组,输入,判断n对数据进行排序时需要两个变量i,j,不断遍历,每一次循环确定一个位置最后输出注意事项:我考虑了n的大小,冒泡排序的变量,可是一直出现错误…… 题解列表 2022年03月27日 0 点赞 0 评论 518 浏览 评分:0.0
数据结构-链表的基本操作 摘要:注意: 别用gets()来获取字符串,不然会跑不通 代码:按模块编写函数即可 #include #include #include int l…… 题解列表 2022年03月27日 0 点赞 0 评论 557 浏览 评分:0.0
模拟过程,注意判断条件 摘要:解题思路:注意事项:参考代码:T = int(input()) for _ in range(T): n = int(input()) matrix = [list(inpu…… 题解列表 2022年03月27日 0 点赞 0 评论 339 浏览 评分:0.0