C语言程序设计教程(第三版)课后习题7.2 (C++代码) 摘要:解题思路:标准“选择排序”算法题目什么是选择排序?即从一组数开头(或末尾)找一个数,与它随后(或之前)的数比较大小,并按照提议从小到大(或从大到小)的顺序排列(交换变量的值)然后再从前(或从后)找到第…… 题解列表 2018年05月13日 0 点赞 0 评论 1322 浏览 评分:0.0
倒杨辉三角形 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> using namespace std; int a[10][10]; int main…… 题解列表 2018年05月13日 0 点赞 0 评论 1399 浏览 评分:9.6
不容易系列 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int N; cin>>N; int n; …… 题解列表 2018年05月13日 0 点赞 0 评论 1399 浏览 评分:0.0
程序员美工梦 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; void f1_print(int n) { for(int i=1;i<=n;…… 题解列表 2018年05月13日 0 点赞 0 评论 1749 浏览 评分:0.0
上车人数 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; const int M=1000+5; struct num{ int b1,b…… 题解列表 2018年05月13日 0 点赞 0 评论 1135 浏览 评分:2.0
三进制小数 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> #include<cmath> using namespace std; int mai…… 题解列表 2018年05月13日 0 点赞 0 评论 1410 浏览 评分:9.9
三角形 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; const int n_max=100+5; int a[n_max][n_max]…… 题解列表 2018年05月13日 1 点赞 0 评论 1394 浏览 评分:5.0
数列 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; const int M=10000+5; int a[M]; int main()…… 题解列表 2018年05月12日 0 点赞 0 评论 1671 浏览 评分:0.0
蓝桥杯2015年第六届真题-机器人塔 (C++代码) 摘要:解题思路:位向量法注意事项:时间超限,显然这里的数据测试不是很严格,数据直接通过了参考代码:#include<iostream> #include<cstdio> #include<algorit…… 题解列表 2018年05月12日 2 点赞 0 评论 1807 浏览 评分:2.0
文科生的悲哀 (C++代码) 摘要:解题思路:n=1,ans=1;n=2,ans=1;n=3,ans=2;n=4,ans=5……ans 和 n 的关系满足n(1,2,……,N)->ans(1,1,3,5,8,13,……)//显然是斐波那…… 题解列表 2018年05月12日 1 点赞 0 评论 790 浏览 评分:0.0