采药 (C++代码) 摘要:#include<bits/stdc++.h> using namespace std; typedef long long ll; const ll MAX=987654321; ll n,…… 题解列表 2018年11月13日 2 点赞 0 评论 412 浏览 评分: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 评论 534 浏览 评分:0.0
蓝桥杯算法提高VIP-排列式 (C++代码) 摘要:解题思路:先分析问题,不要盲目暴力。如果直接搜索,使用先求全排列,然后逐位选取数字,再组合的方法,复杂度在P(9,4)*P(5,2)*3! = 362880 > 3*10^5上下,可能在1s的时间里是…… 题解列表 2018年11月13日 0 点赞 0 评论 720 浏览 评分: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 评论 615 浏览 评分:0.0
求两个集合交集 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; typedef long long ll; const ll MAX=98…… 题解列表 2018年11月13日 1 点赞 0 评论 952 浏览 评分:0.0
蓝桥杯算法提高VIP-拿糖果 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; typedef long long ll; const ll MAX=98…… 题解列表 2018年11月13日 2 点赞 1 评论 871 浏览 评分:6.0
蓝桥杯算法提高VIP-拿糖果 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; typedef long long ll; ll n,m; int …… 题解列表 2018年11月13日 1 点赞 0 评论 527 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(2) (C++代码)pow&pow还有C++的输出 摘要:解题思路:纯C++写法,先说说fact函数,用来求阶乘,完全可以一个三目运算解决?:使用方法为 a?b:c,其中a是一个判别式,类似于if()括号中的条件,然后?为前面条件成立的执行,:为不成立执行,…… 题解列表 2018年11月13日 0 点赞 0 评论 772 浏览 评分:0.0
蓝桥杯算法提高VIP-彩票 (C++代码) 摘要:解题思路:枚举类型,switch分支,循环输入注意事项:switch的break不要漏掉参考代码:#define _CRT_SECURE_NO_WARNINGS #include <iostre…… 题解列表 2018年11月13日 0 点赞 0 评论 712 浏览 评分:0.0
蓝桥杯基础练习VIP-报时助手 (C++代码)(条件语句) 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;string ans[100]={"zero","one","two","thre…… 题解列表 2018年11月13日 0 点赞 0 评论 554 浏览 评分:0.0