优质题解 Manchester-求矩阵的两对角线上的元素之和(一维数组代替二维数组) 摘要:解题思路:1.用一维数组代替二维数组;2.设Length为二维数组中每行的长度;3.对应一维数组长度为pow(Length,2);4.设i代表行数,从1开始;(也可以从0开始,但下面关系式要变)5.则…… 题解列表 2017年12月18日 14 点赞 2 评论 3233 浏览 评分:9.1
剔除相关数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>typedef struct Node{ int pre; int change; int flag…… 题解列表 2017年12月18日 0 点赞 0 评论 971 浏览 评分:0.0
马拦过河卒 (C语言代码) 摘要:解题思路:用递归遍历每一种情况,并且根据马的位置去掉不能走过的点注意事项:参考代码:#include <stdio.h>int computer(int x1, int y1, int x, int …… 题解列表 2017年12月18日 0 点赞 0 评论 1545 浏览 评分:0.0
检查金币 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(void){ int num[10]; int i, j, k, l, q, w,…… 题解列表 2017年12月18日 0 点赞 0 评论 1292 浏览 评分:0.0
回文数(一) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(void){ int i, j, l, k, m, x, y, z, h, gao…… 题解列表 2017年12月18日 0 点赞 0 评论 1148 浏览 评分:0.0
众数问题 (C语言代码) 摘要:解题思路:记录每一个数字的出现次数并比较注意事项:参考代码:#include <stdio.h>int main(void){ int i, j, n, count, min, digit, coun…… 题解列表 2017年12月18日 0 点赞 0 评论 2089 浏览 评分:6.5
Manchester-求函数值 摘要:解题思路:如果x大于0,则执行函数:如果x==1返回10;如果x>1,递归x-1,返回f(x-1)+2;输出f(x);参考代码:#include <stdio.h> int f( int x ); …… 题解列表 2017年12月18日 21 点赞 4 评论 1094 浏览 评分:9.3
Manchester- 求具有abcd=(ab+cd)2性质的四位数 摘要:解题思路:判断所有四位数,满足条件输出该四位数加两空格;参考代码:#include <stdio.h> #include <math.h> int main() { for ( i…… 题解列表 2017年12月18日 20 点赞 1 评论 1422 浏览 评分:9.5
C语言程序设计教程(第三版)课后习题10.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>char b[80];void cp(int n,char s[],int m){ int…… 题解列表 2017年12月17日 0 点赞 0 评论 968 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.3 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define N 100struct student{ char num[10]; char name[10]; i…… 题解列表 2017年12月17日 0 点赞 0 评论 1071 浏览 评分:0.0