2003年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int isprime(int n) { int i; if(n<2) return 0; for(…… 题解列表 2019年05月19日 0 点赞 0 评论 744 浏览 评分:0.0
【偶数求和】 (C语言代码)emmmm,还可以。。 摘要:解题思路:先用n%m求余,得到要特殊处理的数的个数。然后在按照题目要求求解就行了!!!注意事项:注意sum/x,x不能为0参考代码:#include<stdio.h>int main(){ int n…… 题解列表 2019年05月19日 0 点赞 0 评论 599 浏览 评分:0.0
回文判断 (C/C++语言代码) 摘要:解题思路:回文就是正反都一样。在判断过程中只要判断到串中间位置即可;因为每次都是选两个字符判断你是否相等(分别从首位开始和从末尾开始),在判断过程中,只要有不相等就直接返回false,反之一直比下去,…… 题解列表 2019年05月19日 7 点赞 0 评论 1371 浏览 评分:7.3
蓝桥杯2017年第八届真题-发现环 (C++代码)并查集 摘要: #include "stdio.h" #include "stdlib.h" #include "iostream" #include "string.h" …… 题解列表 2019年05月19日 5 点赞 3 评论 1618 浏览 评分:9.9
字符串中间和后边*号删除 (C语言代码) 摘要:解题思路:看代码注意事项:看代码参考代码:#include <string.h> #include<stdio.h> //#include<conio.h>//有这个编译过不了 vo…… 题解列表 2019年05月19日 0 点赞 0 评论 607 浏览 评分:0.0
蓝桥杯2017年第八届真题-合根植物 (C++代码)并查集 摘要: #include "stdio.h" #include "stdlib.h" #include "iostream" #include "string.h" …… 题解列表 2019年05月19日 5 点赞 0 评论 1327 浏览 评分:9.9
蓝桥杯2017年第八届真题-分考场 (C++代码)图的染色 摘要: #include "stdio.h" #include "stdlib.h" #include "iostream" #include "string.h" …… 题解列表 2019年05月19日 4 点赞 0 评论 1503 浏览 评分:9.0
[编程入门]阶乘求和 (C语言代码) 摘要:解题思路:注意事项:注意数据类型范围。参考代码:#include<stdio.h>int main(){ int n; scanf("%d", &n); if (n <= 20…… 题解列表 2019年05月19日 0 点赞 0 评论 1619 浏览 评分:9.9
[编程入门]数字的处理与判断 (C语言代码) 摘要:解题思将输入数的每位数字保存下来,然后按要求输出;注意事项:数组的界限问题。参考代码:#include<stdio.h>#include<stdlib.h>int main(){ int n;…… 题解列表 2019年05月19日 0 点赞 0 评论 656 浏览 评分:5.0
getchar简单解决 摘要:解题思路:getchar读入后直接打印即可注意事项:getchar是读入函数的一种。它从标准输入里读取下一个字符,相当于getc(stdin)。返回类型为int型,为用户输入的ASCII码或EOF。(…… 题解列表 2019年05月19日 1 点赞 0 评论 806 浏览 评分:0.0