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