WU-删除数组中的0元素 (C++代码) 摘要:用两个数组 这个题目就会很简单参考代码:#include<iostream> using namespace std; int a[1006]; int b[1006]; int main()…… 题解列表 2017年12月09日 3 点赞 0 评论 2083 浏览 评分:9.6
WU-2003年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:参考代码:#include<stdio.h> int isprime(int M,int N) { int i,j,sum=0,flag; for(i=M;i<=N;i++) { …… 题解列表 2017年12月12日 3 点赞 8 评论 1770 浏览 评分:9.6
WU-C二级辅导-进制转换 (C语言代码) 摘要:参考代码:#include<stdio.h> #include<math.h> int main() { int M,n=0,a[100],*p,i; int sum=0; p…… 题解列表 2017年12月12日 2 点赞 3 评论 1381 浏览 评分:9.6
优质题解 Manchester-排序问题<2>(选择,冒泡,合并排序,附带图解) 摘要:解题思路:选择排序:(思路:先从下标为0的数开始遍历,找到下标从0到9的数中最大的数,与下标为0的数交换;然后从下标为1的数开始遍历,找到下标从1到9的数中最大的数,与下标为1的数交换;.......…… 题解列表 2017年12月17日 27 点赞 18 评论 3982 浏览 评分:9.6
Manchester-数字母 摘要:解题思路:输入一个字符串,遍历每一个字符,是字母个数加1;注意事项:测试数据只有一组,以文件末尾结束,输出会超限;参考代码:#include<stdio.h> #include<string.h> …… 题解列表 2017年12月15日 22 点赞 1 评论 2410 浏览 评分:9.6
优质题解 Manchester-【出圈】(公式法+循环链表 附带图解) 摘要:解题思路:(原:1047: C语言程序设计教程(第三版)课后习题10.5)在1047的 的基础上,把报数的数m改为自己输入,同时改为多组测试数据,并且输出带换行符;思路一:(公式法)#include …… 题解列表 2017年12月26日 48 点赞 7 评论 3840 浏览 评分:9.6
C语言程序设计教程(第三版)课后习题3.7 (C++代码) 摘要:解题思路:注意事项:1.字符串计算长度 2.强制转换参考代码:#include <iostream>#include <string.h>using namespace std;int main…… 题解列表 2018年01月11日 1 点赞 0 评论 2390 浏览 评分:9.6
Repairing a Road (C++代码) 摘要:解题思路:注意事项:累死宝宝了,夜晚最后一个程序参考代码:#include <cstdio> #include <cstring> #include <algorithm> #include <…… 题解列表 2018年01月14日 4 点赞 0 评论 1777 浏览 评分:9.6
假币问题 (C语言代码) 摘要:解题思路:/* 将硬币平均分成三堆:A,B,C,若不能平分,则需保证A,B两堆必须数目相同,且A,B的数量要比C多, 其中AB用于称重比较 对于一次称重,若A == B,则假币在C,若A != …… 题解列表 2018年02月11日 9 点赞 0 评论 4671 浏览 评分:9.6
不用数组,10行代码就能搞定,,简单易懂!! 摘要:解题思路:代码a>b?c:d; 如果a>b成立,返回c,否则返回d注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,q,w,e; scanf…… 题解列表 2018年02月14日 8 点赞 3 评论 1700 浏览 评分:9.6