蓝桥杯2014年第五届真题-排列序数-题解(C++代码)(20行代码) 摘要:介绍一个函数next_permutation(start,end),通过它直接实现全排列 对于next_permutation函数,其函数原型为: `` #include b…… 题解列表 2020年03月07日 0 点赞 1 评论 1081 浏览 评分:9.9
C语言训练-求矩阵的两对角线上的元素之和-题解(C++代码)我不用个数组!!!翻我翻我!!!!! 摘要: #include using namespace std; int main() { int n, sum = 0, a; cin >> n; for (int i =…… 题解列表 2020年03月07日 0 点赞 0 评论 672 浏览 评分:9.9
蓝桥杯算法提高VIP-递归倒置字符数组-题解(C++代码)c++递归版 摘要:** 实际的说明都已经在注释中,若有讲解不清楚部分或错误部分可以评论提出指导**。 ```cpp //递归思路: /* 通过题目示例知道由外到内的交换,所以递归中的代码先 交换后输出,…… 题解列表 2020年03月07日 0 点赞 0 评论 1022 浏览 评分:9.0
二级C语言-公约公倍-题解(C++代码) 翻我翻我!!! 摘要: #include using namespace std; int DFS(int a, int b); int main() { int a, b; cin >> a …… 题解列表 2020年03月07日 0 点赞 0 评论 1168 浏览 评分:9.9
[出圈]-题解(Python代码) 摘要: while True: n_number, m_number = map(int, input().split()) # 输入人数和m people_num…… 题解列表 2020年03月07日 0 点赞 0 评论 1614 浏览 评分:9.9
C++的看我!!!看我看我1!!!!! 摘要: #include using namespace std; int main() { string s; cin >> s; cout …… 题解列表 2020年03月07日 0 点赞 1 评论 1045 浏览 评分:8.9
蓝桥杯2017年第八届真题-日期问题-题解(C语言代码) 摘要: #include #include int run_year_choice(int year)//判断该年是否为闰年 { if(((year%4==0…… 题解列表 2020年03月07日 0 点赞 0 评论 1336 浏览 评分:9.9
蓝桥杯算法训练-删除数组零元素-题解(Java代码) 摘要:删除数据不好删除大不了再定义一个,把握好数组长度即可 Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int [] ar…… 题解列表 2020年03月07日 0 点赞 0 评论 1045 浏览 评分:0.0
C语言训练-"水仙花数"问题1-题解(C++代码) 摘要: #include using namespace std; int main() { string s; cin >> s; int a, b, c, d; a …… 题解列表 2020年03月07日 0 点赞 2 评论 1131 浏览 评分:9.9
[亲和数]-题解(Python代码) 摘要: test_count = int(input()) answer_list = [] # 存放每一组的结果 def getSum(number): …… 题解列表 2020年03月07日 0 点赞 0 评论 2077 浏览 评分:8.0