优质题解 异或数列(c++位运算) 摘要: ------------  ------------ ###### 思…… 题解列表 2022年03月13日 1 点赞 5 评论 3144 浏览 评分:9.8
优质题解 五大方法带你解决三个数最大值问题(附带任意个数最大值解决方案) 摘要:一、if嵌套语句 注意大于号和小于号。 if(表达式) 语句其语义是:如果表达式的值为真,则执行其后的语句,否则不执行该语句。 第二种形式为: if-elseif(表达式…… 题解列表 2022年03月13日 25 点赞 53 评论 31155 浏览 评分:10.0
题解 1093: 字符逆序 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char str[100]; gets(st…… 题解列表 2022年03月13日 0 点赞 0 评论 500 浏览 评分:0.0
仅用pow函数进行进制转换 摘要:解题思路:注意事项:参考代码:#include#includeusing namespace std;int main(){ int i, j = 0, n, a[10] = { 0 }; cin >…… 题解列表 2022年03月13日 0 点赞 0 评论 713 浏览 评分:9.9
输出全排列 摘要:解题思路:这道题说白了就是考dfs,把思想学会,遇到同样的题就会做了。注意事项:参考代码:#include<stdio.h>int book[110];int n,order[110];void df…… 题解列表 2022年03月13日 0 点赞 0 评论 630 浏览 评分:9.9
题目 2570: 蓝桥杯2020年第十一届省赛真题-成绩分析 摘要:解题思路: 先求出最大值,最小值和累加值。 用累加值除以个数,把他乘100的值分别放在int和double类型的变量中 用double类型变量减去int类型变量如果≥0.5 那么in…… 题解列表 2022年03月13日 0 点赞 0 评论 735 浏览 评分:6.0
如何用for循环解决数字的处理与判断 摘要:解题思路:很简单,相信各位程序员们看完代码一目了然!注意事项:for循环和数组的使用参考代码:#include <iostream>using namespace std;int main(){ in…… 题解列表 2022年03月13日 0 点赞 0 评论 387 浏览 评分:0.0
dfs!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 摘要:```cpp #include using namespace std; string s1; int arr[100][100]; int vis[100][100] = {0}; in…… 题解列表 2022年03月13日 0 点赞 0 评论 413 浏览 评分:9.9
蓝桥杯基础练习VIP-回形取数 dfs 摘要:解题思路: K控制方向注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int arr[201][201]; int vis[20…… 题解列表 2022年03月13日 0 点赞 0 评论 297 浏览 评分:0.0
优质题解 1840: 蓝桥杯2015年第六届真题-赢球票(3.13) 摘要:解题思路:模拟题目描述的过程,暴力法注意事项:在遍历时要注意,因为每当索引与数字相同时都要,拿掉这张卡片,如果用数组存储卡片索引的话,要找到这张卡片并保证数组索引不越界较为困难和繁琐,换个思路--题目…… 题解列表 2022年03月13日 0 点赞 0 评论 923 浏览 评分:0.0