蓝桥杯2017年第八届真题-分考场 摘要:解题思路:注意事项:参考代码: static int n,min=100; static int arr[][];//用一个二维数组来表达考生人数; st…… 题解列表 2023年04月01日 0 点赞 0 评论 331 浏览 评分:0.0
字符排列问题——python 摘要:解题思路:注意事项:参考代码:from itertools import*n = int(input())L = set(permutations(input()))print(len(L))…… 题解列表 2023年04月01日 0 点赞 0 评论 264 浏览 评分:0.0
最大子矩阵 暴力解O(n4) 和优化解 O(n3) 摘要:解题思路: 双指针加二维数组前缀和注意事项:参考代码: //原始做法 纯暴力   题解列表 2023年04月02日 0 点赞 0 评论 435 浏览 评分:0.0
线段树--蓝桥杯2022年第十三届决赛真题-最大公约数(C/C++/Java组) 摘要:# 转载自csdn上的大佬 ```cpp import java.util.Scanner; public class _Test2 { static int N = 10001…… 题解列表 2023年04月02日 0 点赞 0 评论 986 浏览 评分:0.0
不是双指针 想知道哪里错了 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int flag = 0; string s1,s2; ci…… 题解列表 2023年04月02日 0 点赞 0 评论 317 浏览 评分:0.0
阶乘和数数数 摘要: 1:先判断哪些正整数符合要求,把符合的转成字符串放在数组里保存起来 2:对字符串进行排序 ```c #include #include #include #define N …… 题解列表 2023年04月02日 0 点赞 0 评论 567 浏览 评分:0.0
[编程入门]密码破译 摘要:解题思路:先将结果存储起来,之后一次输出注意事项:注意w,x,y,z的处理参考代码:n = input()l = []for i in n: j = chr(ord(i)+4) if no…… 题解列表 2023年04月02日 1 点赞 0 评论 550 浏览 评分:0.0
前缀和+组合数+取余公式转换 摘要:解题思路:注意事项:(b-a)%k=(b%k-a%k)%k,因为两个余数一样的话,相减就是0啊!!!!!!!!!!所以任取余数相同的两个数参考代码:n,k=map(int,input().split(…… 题解列表 2023年04月02日 0 点赞 0 评论 397 浏览 评分:0.0
蓝桥杯2021年第十二届省赛真题-砝码称重 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;const int N=1e5+10;int w[110];int dp[110][N];//…… 题解列表 2023年04月02日 0 点赞 0 评论 425 浏览 评分:0.0
给用Java的开一下荒土 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[] a…… 题解列表 2023年04月02日 0 点赞 0 评论 389 浏览 评分:0.0