题解列表
蓝桥杯2016年第七届真题-冰雹数-仔细读题
摘要:####其实这题思路很简单,主要是题目有坑,(一个正整数,表示不大于N的数字,经过冰雹数变换过程中,最高冲到了多少)不大于N的数字,其实是从1-N的数字,在这些数字中找最大值,最后要注意,类型要用Lo……
Python代码,大道至简
摘要:解题思路:注意事项:参考代码:while True: n = list(map(int,input().split())) if n[0] == 0: exit(0) ……
用stl的map函数进行排序(系统自动排序)
摘要:解题思路:#include<map> 为map头文件,每一行输入学号和成绩,所以可以把学号看成“键”,把成绩看成值。系统会根据键值自动进行排序,所以比较轻松 注意事项:主义map函数的初始化,比较复杂……
简单方式实现 逆序输出
摘要:解题思路:逆序输出注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){ char a[100……
容易理解的C语言代码
摘要:解题思路:注意事项: 数组长度要足够大,不然存储不了,空间不够参考代码:#include <stdio.h>
#include <string.h>
int main()
{
i……
简单python走起
摘要:解题思路:注意事项:参考代码:for i in range(100,335):
l=[]
a=i
b=2*i
c=3*i
l.extend(……
简单python走起
摘要:解题思路:注意事项:参考代码:def cc(n):
a=list(str(n))
b=list(str(n))
a.sort(reverse=True)
b.……
简单python走起
摘要:解题思路:注意事项:参考代码:mas=input().split()
mas_1=[len(i) for i in mas ]
mx=mas_1.index(max(mas_1))
print(……