【偶数求和】 (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 评论 979 浏览 评分:0.0
【计算两点间的距离】 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> double ys(double x1,double y1,double x2,double y…… 题解列表 2018年02月12日 3 点赞 0 评论 1390 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(2) (C++代码) 摘要:参考代码:#include <iostream> #include <iomanip> using namespace std; double fact(int n) { doubl…… 题解列表 2018年02月12日 0 点赞 0 评论 1112 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题9.10 (Java代码) 摘要:解题思路:将字符串转化成字符数组,用charAt(i)来读取数组内的各个元素。注意事项:z变成的是a,需要分开讨论,同时需要考虑字母的大小写。参考代码:import java.util.Scanner…… 题解列表 2018年02月12日 1 点赞 0 评论 1195 浏览 评分:0.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 评论 988 浏览 评分:0.0
数字统计 (C语言代码) 摘要:#include <stdio.h>int main(){ long long i,j=0,k=0,n,a[10]; scanf("%lld",&n); for(i=0;i<1…… 题解列表 2018年02月12日 0 点赞 0 评论 864 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题1.5 (C语言代码) 摘要:解题思路:注意事项:参考代码: #include <stdio.h> /*标准头文件*/int main (void) /*主函数*/{ int a; /*定义一个变量…… 题解列表 2018年02月13日 1 点赞 0 评论 740 浏览 评分:0.0
P1027 (C语言代码) dfs 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int r,c,max;int a[41][41],b[41][41];void dfs(int x,int y,int sum){ i…… 题解列表 2018年02月13日 0 点赞 0 评论 1141 浏览 评分:0.0
P1029 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int lee(char* a,char* b,int la,int lb){ int i,j,ma…… 题解列表 2018年02月13日 0 点赞 0 评论 1207 浏览 评分:0.0
点开我,有惊喜哦!(两种思路)(第三版)课后习题6.7 (C语言代码) 摘要:解题思路:首先是要能够写出循环,我写了好多,都是错误的幸好今天终于写正确了;虽然错了很多,但是感觉很开心我写出来的一种代码,答案是错误的,就是下面的第二种就是错误的;也许是运算的数字太大,不能够运行;…… 题解列表 2018年02月13日 1 点赞 0 评论 1047 浏览 评分:0.0