二级C语言-成绩归类(水题) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,a=0,b=0,c=0; while(scanf("%d",&n)&&n>0){ if(n>=8…… 题解列表 2023年01月11日 0 点赞 0 评论 149 浏览 评分:0.0
结构体之成绩统计2(C语言) 摘要:#include<stdio.h> typedef struct student { char studentid[10]; char studentname[5]; int scor…… 题解列表 2023年01月11日 0 点赞 0 评论 141 浏览 评分:0.0
编写题解 1036: [编程入门]带参数宏定义练习 简单利用指针来交换 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>#include<iomanip>using namespace std;int main(){ i…… 题解列表 2023年01月11日 0 点赞 0 评论 230 浏览 评分:0.0
1828: 蓝桥杯2015年第六届真题-密文搜索 摘要:解题思路:此题的难点大概在于对于题目的理解,在思维上并没有太大的难度,这个题的最终意思是,对每行密码都进行排列组合,形成的所有的新的字符串是否包含在s字符串中,若包含,则计入,反之。这里留下了一定的思…… 题解列表 2023年01月11日 0 点赞 0 评论 284 浏览 评分:0.0
题解 1129: C语言训练-排序问题<2> 摘要:解题思路:注意事项:参考代码:#include<stdio.h> extern int a = 0; extern int b = 0; extern int c = 0; extern in…… 题解列表 2023年01月11日 0 点赞 0 评论 141 浏览 评分:0.0
用筛法求之N内的素数(水题) 摘要:```c #include int isprime(int n){ int i; if(n…… 题解列表 2023年01月11日 0 点赞 0 评论 178 浏览 评分:0.0
一直不习惯用while,这次解出来啦 摘要:解题思路:用while语句,if判断语句,奇数的判断方法语句余数不为零即可注意事项:别忘了题目给的数字范围哦参考代码:#include "stdio.h"int main(){ int m,n; in…… 题解列表 2023年01月11日 0 点赞 0 评论 260 浏览 评分:0.0
想了几种办法,这种最耗时最少 摘要:解题思路:while循环语句,if判断语句注意事项:认真参考代码:#include "stdio.h"int main(){ int m,n; int sum=0; int num; scanf("…… 题解列表 2023年01月11日 0 点赞 0 评论 226 浏览 评分:0.0
完数的判断 c++代码 摘要: #include #include #include using namespace std; signed main()…… 题解列表 2023年01月11日 0 点赞 0 评论 170 浏览 评分:0.0
线性筛解法,时间复杂度仅为O(n) 摘要:###线性筛解法,时间复杂度仅为O(n)### ```cpp #include using namespace std; const int N = 1e6 + 5; …… 题解列表 2023年01月11日 0 点赞 0 评论 188 浏览 评分:0.0