C语言训练-委派任务* (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;bool fun1(int a,int b){ if(a+b>=1) return true…… 题解列表 2019年03月01日 0 点赞 1 评论 1132 浏览 评分:0.0
蓝桥杯算法提高VIP-Lots of Sunlight (C++代码) 摘要:解题思路:对于任意一个给定的房间,以下图中第2栋楼的202室为例,在太阳位于正上方的时候肯定可以完全被阳光照射。在这之前有一一个刚开始被照射的最小角度,最小角度取决于这栋楼左边的楼房对太阳光的遮挡。对…… 题解列表 2019年02月28日 0 点赞 0 评论 698 浏览 评分:6.0
蓝桥杯算法提高VIP-数组替换 (C++代码) 摘要:解题思路:注意事项:k=k>m?k:m;注意这一句代码,套路好深!!!参考代码:#include<bits/stdc++.h>using namespace std;int a[10000],b[10…… 题解列表 2019年02月28日 0 点赞 0 评论 604 浏览 评分:0.0
IP判断 (C++代码) 摘要: 解题思路: 一个合格的IP地址:192.168.2.1。 以“.”为分割处,将其分割为4部分,每一部分分别判断。 1.将整体放在字符数组(ip[30])里,将分开的4部分放在…… 题解列表 2019年02月28日 1 点赞 0 评论 629 浏览 评分:0.0
蛇行矩阵 (C++代码) 摘要:解题思路:1 3 6 10 152 5 9 144 8 137 1211按照 15-14-13-12-11 10-9-8-7 6-5-4 3-2 …… 题解列表 2019年02月28日 0 点赞 0 评论 552 浏览 评分:0.0
蓝桥杯算法训练VIP-输出米字形 (C++代码) 摘要:解题思路:题干已经提示很明显了,一笔一笔写是最方便的注意事项:参考代码:#include <iostream> #include <vector> #include <map> #include…… 题解列表 2019年02月27日 0 点赞 0 评论 742 浏览 评分:2.0
蓝桥杯算法训练VIP-幂方分解 (C++代码) 摘要:解题思路:主要在于递归分治函数运用位运算查找当前需要进行分解数的1的最高位,然后先打印一个2,再对得到的幂进行判断,是1直接不用处理,是2或0就按代码中进行打印.不是0,1,2就对幂进行递归分解.最后…… 题解列表 2019年02月27日 0 点赞 0 评论 1121 浏览 评分:9.9
蓝桥杯算法提高VIP-sign函数 (C++代码) 摘要:解题思路:模拟注意事项:引入极小量的概念,可以思考极大量是什么?参考代码:#include<bits/stdc++.h> using namespace std; const double eps…… 题解列表 2019年02月27日 0 点赞 4 评论 711 浏览 评分:0.0
排序 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<cstdio>int arr[100];void swap(int &a,int& b){ int temp=a; a=b; b=temp;}void …… 题解列表 2019年02月27日 0 点赞 0 评论 623 浏览 评分:0.0
字符串的查找删除 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<bits/stdc++.h>#include<cstring>#include<cmath>#include<cst…… 题解列表 2019年02月27日 0 点赞 1 评论 574 浏览 评分:0.0