题解列表
1507: 蓝桥杯算法提高VIP-去注释
摘要:参考代码:#include <bits/stdc++.h>
using namespace std;
void myfunc(string s, int n, int &i, bool &……
优质题解
蓝桥杯算法提高VIP-和最大子序列(C语言代码)
摘要:解题思路:用滑动窗口思想解决问题比较简单,不过这题不需要记明窗口,只需要判断当前序列的和只要当前序列的和不小于0,当前序列就有成为和最大的可能如果当前序列和小于零,一定会使下一个序列的和变小所以此时要……
1520: 蓝桥杯算法提高VIP-开灯游戏 Python3 暴力简单做法,使用itertools标准库
摘要:解题思路:注意事项: 得到结果以后需要先排序再输出即可参考代码:from itertools import permutations
switch = [[0, 1, 0, 1, 0, 0……
题解 1390: 大神老白
摘要:
```c
#include
int main()
{int n,a[10];
while (scanf("%d",&n)!=EOF)
{
int sum……
利用了一下math,
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,i,c,d; scanf("%d",&a); c=……
if、else if、else每个条件
摘要:解题思路:每个条件都列出来注意事项:参考代码#include<stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a<=b&&a……