明明的随机数--C/C++两版 摘要:解题思路: 肯定是先排序再去重了!!!先使用快速排序法或者冒泡排序法进行排序,排序没有什么难度,如果不懂排序的可以看看我之前写的排序法(带模板的啊)。 …… 题解列表 2022年11月13日 0 点赞 0 评论 375 浏览 评分:0.0
函数的调用666 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int happy(int n){ int nn=n,num=0,sum=0,i; while(nn>…… 题解列表 2022年11月13日 0 点赞 0 评论 612 浏览 评分:0.0
阶乘末尾的K位 摘要:解题思路:注意事项:参考代码:#include <stdio.h>long long a[100];int main(){ int n,m,k=0,i; long lo…… 题解列表 2022年11月13日 0 点赞 0 评论 293 浏览 评分:0.0
好理解一些 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int huishus(int n) //素数函数{ int i; if (n % 2 == 0) r…… 题解列表 2022年11月13日 0 点赞 0 评论 299 浏览 评分:0.0
同行列对角线的格子 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,m,g; scanf("%d %d %d",&n,&m,&g); for(int i=0…… 题解列表 2022年11月13日 0 点赞 0 评论 340 浏览 评分:0.0
思路很简单,实现非常简单 摘要: #include int main() { char arr[100][201] = { 0 };// 每行最多两百个字符再加上一个换行符(不要像我一样,在vs上写成arr[20][1…… 题解列表 2022年11月13日 0 点赞 0 评论 379 浏览 评分:0.0
蓝桥杯算法训练VIP-友好数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n,sum1=0,sum2=0; scanf("%d %d",&m,&n); if…… 题解列表 2022年11月13日 0 点赞 0 评论 316 浏览 评分:0.0
[编程入门]最大公约数与最小公倍数(C语言题解) 摘要:解题思路:很多人使用辗转相除法来获得GCD和LCM,但在中学大家更多的应该是使用老师讲的短除法,所以这个代码采用了短除法的思路。参考代码:#include<stdio.h> int main() …… 题解列表 2022年11月13日 0 点赞 0 评论 350 浏览 评分:0.0
题解 1051: [编程入门]结构体之成绩统计2 1050基础上修改 摘要: #include //typedef struct Student { char num[16]; char name[32…… 题解列表 2022年11月14日 0 点赞 0 评论 291 浏览 评分:0.0
1023: [编程入门]选择排序 摘要:```c #include const int NUM = 10; int main() { int i = 0,min=0,min_index=0; int a[11]; …… 题解列表 2022年11月14日 0 点赞 0 评论 344 浏览 评分:0.0