C语言程序设计教程(第三版)课后习题9.10 (Java代码) 摘要:解题思路:将字符串转化成字符数组,用charAt(i)来读取数组内的各个元素。注意事项:z变成的是a,需要分开讨论,同时需要考虑字母的大小写。参考代码:import java.util.Scanner…… 题解列表 2018年02月12日 1 点赞 0 评论 1253 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(2) (C++代码) 摘要:参考代码:#include <iostream> #include <iomanip> using namespace std; double fact(int n) { doubl…… 题解列表 2018年02月12日 0 点赞 0 评论 1400 浏览 评分:0.0
【计算两点间的距离】 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> double ys(double x1,double y1,double x2,double y…… 题解列表 2018年02月12日 3 点赞 0 评论 1628 浏览 评分:0.0
【偶数求和】 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int ys(int a,int n){ int k=a+2*(n-1); int sum=(a+k)*n/2; …… 题解列表 2018年02月12日 1 点赞 0 评论 1153 浏览 评分:0.0
蓝桥杯算法训练VIP-筛选号码 (C语言代码) 摘要:解题思路: 题解不多 我也凑个数注意事项:不清楚参考代码:不知道怎么弄得美观一点 只能这样了 #include<stdio.h>int main(){ int arr[100…… 题解列表 2018年02月12日 0 点赞 0 评论 1144 浏览 评分:0.0
C语言训练-邮票组合问题* (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { printf("19\n"); return 0; }…… 题解列表 2018年02月12日 2 点赞 2 评论 795 浏览 评分:2.0
好像和其他人方法不太一样 摘要:解题思路:采用先排序后去重,将a[]中的数排序,然后将a[]的首项存入b[]的首项,依次比较a[]中后一项与前一项是否相等,不等则存入B[]中,相等则不做处理。最后打印的b[]就是答案。注意事项:排序…… 题解列表 2018年02月12日 0 点赞 0 评论 859 浏览 评分:0.0
C语言训练-谁家孩子跑最慢* (C语言代码) 摘要:解题思路: 数学分析题;每家15分,且3个得分不连续注意事项:参考代码:#include<stdio.h> int main() { printf("W\n"); return 0;…… 题解列表 2018年02月12日 1 点赞 0 评论 1006 浏览 评分:4.7
P1021 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <algorithm> #include <cstring> #include <cstdio> #in…… 题解列表 2018年02月12日 1 点赞 0 评论 1072 浏览 评分:0.0
C语言训练-计算:t=1-1/(2*2)-1/(3*3)-...-1/(m*m) (C语言代码) 摘要:解题思路: m=1时,输出1注意事项:参考代码:#include<stdio.h> int main() { int i,n; double sum=1; scanf("%d",…… 题解列表 2018年02月12日 2 点赞 0 评论 1114 浏览 评分:0.0