题解列表
题目 1033: [编程入门]自定义函数之字符提取
摘要:def fun(str): ls = [] for i in str: if i == 'a' or i == 'e' or i == ……
蓝桥杯算法提高VIP-铺地毯(这是什么鬼题目,没得水平)
摘要:解题思路:注意事项:参考代码:n=int(input())
c=[list(map(int,input().split())) for _ in range(n)]
x,y=map(int,inp……
题目 1032: [编程入门]自定义函数之字符串连接
摘要:def fun(str_1, str_2): new_ste = str_1 + str_2 return new_stestr_1 = input()str_2 = input()rel……
蓝桥杯2017年第八届真题-日期问题(Java代码)自动判断日期是否合法
摘要:#### 解题思路:
###### 1.对输入数据进行处理,使用String.split()函数得到三个整数
###### 2.导入java.time.LocalDate,……
三个字符串的排序,使用strcmp和strcpy函数。
摘要:解题思路:注意事项:数组写大点,我giao。参考代码:#include <stdio.h>#include<stdlib.h>#include<string.h>int main(){ char……
蓝桥杯算法提高VIP-特殊的质数肋骨(C++代码)占用空间最少,耗时小于1ms,效率极高,代码简单清晰易懂。
摘要:解题思路:见注释。参考代码:#include<iostream>
#include<cmath>
using namespace std;
int n,a[10]={0};//存储每个数的各个位……
蓝桥杯算法提高VIP-连接乘积(代码简单,解释详细)
摘要:解题思路:注意事项:参考代码:#s是用来比较是否是1到9的全排列(set比较和顺序无关,元素一样就可)
s=set(str(i) for i in range(1,10))
#结果列表
re=[……
1465: 蓝桥杯基础练习VIP-回形取数(Python3)模拟
摘要:解题思路:注意事项:参考代码:from itertools import cycle
m, n = map(int, input().split())
map_ = [list(map(int……
题解 1975: 蓝桥杯算法提高VIP-扑克排序 利用map映射花色 共37行
摘要:####将对应的字符映射到map里面,用对应的大小去代表某个花色的值
****例如****
m['J']=11;
m['Q']=12;
m['K']=13;
m['A']=1……