P1011 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int n,m,a[52][52],f[52][52][52][52]; …… 题解列表 2018年02月12日 1 点赞 0 评论 986 浏览 评分: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 评论 1069 浏览 评分:0.0
P1021 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <algorithm> #include <cstring> #include <cstdio> #in…… 题解列表 2018年02月12日 1 点赞 0 评论 1017 浏览 评分:0.0
好像和其他人方法不太一样 摘要:解题思路:采用先排序后去重,将a[]中的数排序,然后将a[]的首项存入b[]的首项,依次比较a[]中后一项与前一项是否相等,不等则存入B[]中,相等则不做处理。最后打印的b[]就是答案。注意事项:排序…… 题解列表 2018年02月12日 0 点赞 0 评论 807 浏览 评分:0.0
蓝桥杯算法训练VIP-筛选号码 (C语言代码) 摘要:解题思路: 题解不多 我也凑个数注意事项:不清楚参考代码:不知道怎么弄得美观一点 只能这样了 #include<stdio.h>int main(){ int arr[100…… 题解列表 2018年02月12日 0 点赞 0 评论 1067 浏览 评分: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 评论 1035 浏览 评分:0.0
【计算两点间的距离】 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> double ys(double x1,double y1,double x2,double y…… 题解列表 2018年02月12日 3 点赞 0 评论 1473 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(2) (C++代码) 摘要:参考代码:#include <iostream> #include <iomanip> using namespace std; double fact(int n) { doubl…… 题解列表 2018年02月12日 0 点赞 0 评论 1220 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题9.10 (Java代码) 摘要:解题思路:将字符串转化成字符数组,用charAt(i)来读取数组内的各个元素。注意事项:z变成的是a,需要分开讨论,同时需要考虑字母的大小写。参考代码:import java.util.Scanner…… 题解列表 2018年02月12日 1 点赞 0 评论 1210 浏览 评分: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 评论 1020 浏览 评分:0.0