题解列表

筛选

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……