题解列表
蓝桥杯2020年第十一届省赛真题-整除序列(Python)
摘要:解题思路:注意事项:参考代码:n = int(input())while n>0: print(n,end=' ') n //= 2……
1的个数,五行代码搞定!!!!!!!!!!!
摘要:解题思路:注意事项:参考代码:n=int(input())a=0for i in range(1,n+1): a+=str(i).count("1")print(a)……
编写题解 1050: [编程入门]结构体之成绩记录
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;struct student{ string id; string name; int ……
这题主要是考虑所有数相等的情况,即公差为0
摘要:解题思路:对输入排序,然后判断是否公差为0,最后使用等差数列求项公式注意事项:所有数相等的情况参考代码:n=int(input())arr=list(map(int,input().split()))……
蓝桥杯2019年第十届国赛真题-大胖子走迷宫
摘要:解题思路:BFS 多加几个判断条件注意事项:当时间<2*k,可能原地不动,也可能动。当时间>=2*k之后,就不用原地不动了,直接走。参考代码:#include"bits/stdc++.h"
usi……
蓝桥杯算法提高VIP-选择排序
摘要:注意输出顺序!!#include<iostream>#include<string>#include<cstdio>using namespace std;const int N=1000;int a……
最长的字符串长度减去 这两个字符串相同的字母数
摘要:
public static void main(String[] args) {
Scanner sr = new Scanner(System.in);
String str1……