1507: 蓝桥杯算法提高VIP-去注释 摘要:参考代码:#include <bits/stdc++.h> using namespace std; void myfunc(string s, int n, int &i, bool &…… 题解列表 2021年03月03日 0 点赞 0 评论 278 浏览 评分:0.0
优质题解 蓝桥杯算法提高VIP-和最大子序列(C语言代码) 摘要:解题思路:用滑动窗口思想解决问题比较简单,不过这题不需要记明窗口,只需要判断当前序列的和只要当前序列的和不小于0,当前序列就有成为和最大的可能如果当前序列和小于零,一定会使下一个序列的和变小所以此时要…… 题解列表 2021年03月03日 0 点赞 6 评论 1575 浏览 评分:9.6
用字符函数解题 摘要:解题思路:1.定义一个字符串变量; 2.用getline(cin, str)输入(因为如果直接输入,如果输入空格输入就结束了;getline函数在string头文件里) …… 题解列表 2021年03月03日 0 点赞 0 评论 272 浏览 评分:0.0
1520: 蓝桥杯算法提高VIP-开灯游戏 Python3 暴力简单做法,使用itertools标准库 摘要:解题思路:注意事项: 得到结果以后需要先排序再输出即可参考代码:from itertools import permutations switch = [[0, 1, 0, 1, 0, 0…… 题解列表 2021年03月03日 0 点赞 0 评论 299 浏览 评分:0.0
稍微有点长 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,x1,x2,n=0; int i; scanf("%d",&x); x1=x2=x; while(x…… 题解列表 2021年03月03日 0 点赞 1 评论 190 浏览 评分:0.0
题解 1390: 大神老白 摘要: ```c #include int main() {int n,a[10]; while (scanf("%d",&n)!=EOF) { int sum…… 题解列表 2021年03月03日 0 点赞 0 评论 571 浏览 评分:0.0
利用了一下math, 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,i,c,d; scanf("%d",&a); c=…… 题解列表 2021年03月03日 0 点赞 0 评论 258 浏览 评分:0.0
蓝桥杯质因数2 摘要:参考代码:import java.util.Scanner; public class Main6 { /** * @param args */ public sta…… 题解列表 2021年03月03日 0 点赞 0 评论 387 浏览 评分:9.9
if、else if、else每个条件 摘要:解题思路:每个条件都列出来注意事项:参考代码#include<stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a<=b&&a…… 题解列表 2021年03月03日 0 点赞 0 评论 254 浏览 评分:8.0
1524: 蓝桥杯算法提高VIP-扫雷 Python3 摘要:解题思路: 同1096题Minesweeper; 给原矩阵添加一圈(padding)即可避免判断是否在边缘的问题。注意事项: 参考代码:counter = 1 while 1:…… 题解列表 2021年03月03日 0 点赞 0 评论 254 浏览 评分:0.0