演讲大赛评分 (Java代码) 摘要:解题思路:注意事项:导包import java.util.Arrays;参考代码:public class 演讲大赛评分 { public static void main(String[] …… 题解列表 2018年05月07日 0 点赞 0 评论 1551 浏览 评分:0.0
字符逆序 (C语言代码) 摘要:解题思路:注意事项:用gets()来接收字符串参考代码:#include <stdio.h>#include<string.h> int main(){ int i,j,len; char str[…… 题解列表 2018年05月07日 0 点赞 0 评论 1190 浏览 评分:0.0
用筛法求之N内的素数。 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<math.h> int IsPrime(int a);int main(){ int N,n,i; scanf(…… 题解列表 2018年05月07日 0 点赞 0 评论 1869 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题1.6 (C语言代码) 摘要:解题思路:用条件语句逐级比较注意事项:多次变换要小心参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c);…… 题解列表 2018年05月06日 0 点赞 0 评论 1043 浏览 评分:0.0
优质题解 Manchester-求子串位置的定位函数 摘要:解题思路:1):设主串为A B C D E F G H I G K2):设模式串为E F G3):①:开始,先从主串的第一个字符开始匹配A B C D E F G …… 题解列表 2018年05月06日 9 点赞 0 评论 3893 浏览 评分:9.9
优质题解 Manchester-KMP算法中的模式串移动数组 摘要:解题思路:看图截手动实现过程:注意事项:原字符串,以及next[]数组,规定以下标1为第一个元素参考代码:#include<stdio.h> #include<string.h> #include…… 题解列表 2018年05月06日 7 点赞 1 评论 2394 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题8.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int Max(int a,int b)//返回最大公因数{ int t,n=1; if(a<b) { …… 题解列表 2018年05月06日 0 点赞 0 评论 1061 浏览 评分:0.0
C语言训练-"水仙花数"问题1 (C语言代码) 解题思路:注意事项:参考代码:importjava.util.Scanner;publicclass水仙花数{publicstaticvoidmain(String[]args){ints=0;Scannersc=newScanner(System.in);inti=sc.nextInt();inta 题解列表 2018年05月06日 1 点赞 0 评论 1197 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.3 (C语言代码) 摘要:解题思路:注意事项:一定一定读懂题目,在写代码!要知道最大值与最小值不能同时求出!若同时求,则程序出错例如: 10 1 2 3 4 5 6 7 8 9结果为:9 10 2 3 4 5 6 7 8 …… 题解列表 2018年05月06日 0 点赞 0 评论 2327 浏览 评分:2.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:注意事项:我的编译器没提示错误,但在网页提交提示答案错误参考代码:#include<stdio.h>void main(){ int i,x,a,b,c,d,e; scanf("%d",&x…… 题解列表 2018年05月06日 0 点赞 0 评论 1179 浏览 评分:0.0