蓝桥杯2013年第四届真题-买不到的数目 (C++代码) 摘要:解题思路: 本题首先需要观察数字特点,要找寻最大的不能组成的数,那只需要这样,以4和7举例,从小到大检验每一个数,4,7,8,11,12,14,15,16,18,19,20,21...,然后你会…… 题解列表 2018年11月13日 5 点赞 5 评论 1277 浏览 评分:8.0
C语言程序设计教程(第三版)课后习题11.3 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;class student{ public: void input(); void pri…… 题解列表 2018年11月13日 0 点赞 0 评论 1031 浏览 评分:0.0
采药 (C++代码) 摘要:#include<bits/stdc++.h> using namespace std; typedef long long ll; const ll MAX=987654321; ll n,…… 题解列表 2018年11月13日 2 点赞 0 评论 983 浏览 评分:0.0
开心的金明 (C++代码) 摘要:#include<bits/stdc++.h> using namespace std; typedef long long ll; ll n,m; ll dp[100000],v[10000…… 题解列表 2018年11月13日 0 点赞 0 评论 1522 浏览 评分:0.0
蓝桥杯算法提高VIP-排列式 (C++代码) 摘要:解题思路:先分析问题,不要盲目暴力。如果直接搜索,使用先求全排列,然后逐位选取数字,再组合的方法,复杂度在P(9,4)*P(5,2)*3! = 362880 > 3*10^5上下,可能在1s的时间里是…… 题解列表 2018年11月13日 0 点赞 0 评论 1444 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.1 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;struct date{ int year; int month; int day; int…… 题解列表 2018年11月13日 0 点赞 0 评论 1044 浏览 评分:0.0
求两个集合交集 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; typedef long long ll; const ll MAX=98…… 题解列表 2018年11月13日 1 点赞 0 评论 2003 浏览 评分:0.0
蓝桥杯算法提高VIP-拿糖果 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; typedef long long ll; const ll MAX=98…… 题解列表 2018年11月13日 2 点赞 1 评论 1717 浏览 评分:6.0
蓝桥杯算法提高VIP-拿糖果 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; typedef long long ll; ll n,m; int …… 题解列表 2018年11月13日 1 点赞 0 评论 1031 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(2) (C++代码)pow&pow还有C++的输出 解题思路:纯C++写法,先说说fact函数,用来求阶乘,完全可以一个三目运算解决?:使用方法为a?b:c,其中a是一个判别式,类似于if()括号中的条件,然后?为前面条件成立的执行,:为不成立执行,如此即可快速写出来。还有一个快速幂的写法假设要求x^n, 题解列表 2018年11月13日 0 点赞 0 评论 1470 浏览 评分:0.0