蓝桥杯2017年第八届真题-分考场 摘要:解题思路:注意事项:参考代码: static int n,min=100; static int arr[][];//用一个二维数组来表达考生人数; st…… 题解列表 2023年04月01日 0 点赞 0 评论 252 浏览 评分:0.0
偶数求和——python 摘要:解题思路:注意事项:参考代码:while True: try: n,m = map(int,input().split()) L = [i for i in rang…… 题解列表 2023年04月01日 0 点赞 0 评论 284 浏览 评分:0.0
立方和不等式——python 摘要:解题思路:注意事项:有等号参考代码:n = int(input())s = 0i = 1 while s<=n: s+=i**3 i+=1print(i-2)…… 题解列表 2023年04月01日 0 点赞 0 评论 491 浏览 评分:0.0
简单递归暴力求解 摘要:解题思路:通过递归遍历每一种情况,并通过剪枝减少遍历次数节省时间注意事项:暴力求解可能得不到满分,但可以得到大多数分值参考代码:#includelong long int n;long long in…… 题解列表 2023年04月01日 0 点赞 0 评论 724 浏览 评分:9.5
求s=a+aa+aaa+aaaa+aa...a的值——python 摘要:解题思路:注意事项:参考代码:a,n = map(int,input().split())b =''s = 0for i in range(n): b+=str(a) s+…… 题解列表 2023年04月01日 0 点赞 0 评论 226 浏览 评分:0.0
蓝桥杯算法提高VIP-师座操作系统(java) 摘要:解题思路:注意事项:参考代码:import java.util.HashMap; import java.util.Map; import java.util.Scanner; public…… 题解列表 2023年04月01日 0 点赞 0 评论 173 浏览 评分:0.0
c++string自带的函数挺好用的 摘要:#include using namespace std; string s,ans; int main() { cin>>s; for(int i=0;i<s.size();i++…… 题解列表 2023年04月01日 0 点赞 0 评论 234 浏览 评分:9.9
简洁暴力的dfs就可以了 摘要:方向只要向下和向右,不需要开数组保存走过的路,数据量这么小,直接暴力就行#include<bits/stdc++.h>using namespace std;int n,m;long long ans…… 题解列表 2023年04月01日 1 点赞 1 评论 250 浏览 评分:0.0
贡献值解法 摘要:以cabcdec为例讨论中间的c的贡献值含中间c的子串有abc abcdabcdebcbcdbcdeccdcde假设前面的c为l,中间的c为p,后面的c为r,中间的c的贡献值就为 (…… 题解列表 2023年04月01日 0 点赞 0 评论 395 浏览 评分:9.9
编程入门:三个数字的排序(借用数组来排序)(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[3],i,j,k,max,t; for(i=0;i<3;i++) { …… 题解列表 2023年04月01日 0 点赞 0 评论 419 浏览 评分:0.0