题解列表

筛选

1052: [编程入门]链表合并 python

摘要:解题思路:用列表存学号,用字典存学号-成绩键值对,只对列表排序即可注意事项:无参考代码:a,b = map(int,input().split()) i = 0 dictlinshi = {} ……

1122: C语言训练-亲密数 python

摘要:解题思路:使用字典的键值对注意事项:无参考代码:dictlinshi = {} for i in range(3001):     sum1 = 0     for j in range(1,i……

1132: C语言训练-最大数问题 python

摘要:解题思路:注意事项:因为-1是结束,所以要先移除-1这个值,否则在负数输入的时候会导致错误结果参考代码:list1 = list(map(int,input().split())) while li……

1070: 二级C语言-成绩归类 python

摘要:解题思路:注意事项:注意以0或-1结束则输入结束参考代码:list1 = list(map(int,input().split())) while list1[-1]>0:     list1.e……

1061: 二级C语言-计负均正 python

摘要:解题思路:注意输入会有换行,这种写法更灵活一些注意事项:参考代码:list1 = list(map(int,input().split())) while len(list1)<20:     l……

蓝桥杯历届试题-回文数字 python

摘要:解题思路:遍历,数字->字符串->列表,再与反转后判断注意事项:要注意不能直接用=,会修改原始列表数据!参考代码:num = int(input()) cnt = 0 for i in range……