A+B for Input-Output Practice (III) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b=0,n,count=0; scanf("%d ",&n); while(~sc…… 题解列表 2018年12月30日 0 点赞 0 评论 549 浏览 评分:0.0
元素配对 (C++代码) 摘要:解题思路:思路很明显,要使差的绝对值最大,只需将一个序列的第i大与第二个序列的第i小配对即可。注意事项:本例输入较大,建议不使用输入流。参考代码:#include<cstdio>#include<al…… 题解列表 2018年12月30日 0 点赞 0 评论 855 浏览 评分:0.0
A+B for Input-Output Practice (IV) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b=0,n,count=0; scanf("%d ",&n); while(~sc…… 题解列表 2018年12月30日 0 点赞 0 评论 569 浏览 评分:0.0
getchar( )和字符数组求个数 (C语言代码) 摘要:解题思路:#include <type.h>isalpha()是否是字母;isdigit()是否是数字注意事项:参考代码:#include <stdio.h> #include <ctype.h> …… 题解列表 2018年12月30日 1 点赞 0 评论 1005 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题1.6 (C语言代码) 摘要:解题思路:一个接一个比较注意事项:不要弄混比较量参考代码:#include<stdio.h>int main(){ int a,b,c,max; scanf("%d%d%d",&a,&b,&c…… 题解列表 2018年12月30日 0 点赞 0 评论 510 浏览 评分:0.0
用筛法求之N内的素数。 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <stdlib.h> //Eratosthenes筛选法求素数 int main() { …… 题解列表 2018年12月30日 0 点赞 0 评论 847 浏览 评分:0.0
题解1066 Algorithm算法 两个函数轻松解决 (C语言代码) 摘要:解题思路:根据题目意思,写两个function即可!在C语言math.h库文件中本来就有x的n次方的函数pow()。因此在mypow函数中只需要将其返回即可。注意事项: x - x2/2! + x3…… 题解列表 2018年12月30日 1 点赞 0 评论 865 浏览 评分:0.0
很简单的二级C 编程题(1) (C语言代码) 摘要:解题思路:注意事项:sqrt(x+1)=========pow(x+1,0.5)参考代码:#include <stdio.h> #include <math.h> double f(double …… 题解列表 2018年12月30日 1 点赞 0 评论 958 浏览 评分:0.0
Huffuman树 (Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.ArrayList; import java.util.Collections; import java.util.Scanner;…… 题解列表 2018年12月31日 0 点赞 0 评论 613 浏览 评分:0.0
回形取数 (Java代码)标志数组 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class T1465 { public static void main(String[] …… 题解列表 2018年12月31日 1 点赞 0 评论 948 浏览 评分:0.0