1070: 二级C语言-成绩归类 python 摘要:解题思路:注意事项:注意以0或-1结束则输入结束参考代码:list1 = list(map(int,input().split())) while list1[-1]>0: list1.e…… 题解列表 2021年04月25日 0 点赞 0 评论 387 浏览 评分:9.0
1061: 二级C语言-计负均正 python 摘要:解题思路:注意输入会有换行,这种写法更灵活一些注意事项:参考代码:list1 = list(map(int,input().split())) while len(list1)<20: l…… 题解列表 2021年04月25日 0 点赞 1 评论 704 浏览 评分:9.9
1046: [编程入门]自定义函数之数字后移 摘要:解题思路:用了一个辅助列表注意事项:无参考代码:num = int(input()) list1 = list(map(int,input().split())) list2 = list1.co…… 题解列表 2021年04月25日 0 点赞 0 评论 171 浏览 评分:0.0
1045: [编程入门]自定义函数之整数处理 python 摘要:解题思路:使用python的索引查找,一步到位注意事项:无参考代码:list1 = list(map(int,input().split())) list1[list1.index(max(li…… 题解列表 2021年04月25日 0 点赞 1 评论 256 浏览 评分:6.0
蓝桥杯历届试题-回文数字 python 摘要:解题思路:遍历,数字->字符串->列表,再与反转后判断注意事项:要注意不能直接用=,会修改原始列表数据!参考代码:num = int(input()) cnt = 0 for i in range…… 题解列表 2021年04月24日 0 点赞 0 评论 192 浏览 评分:0.0
编写题解 2002: 计算数字个数 python 摘要:解题思路:无注意事项:使用了try参考代码:s = input() flag = 0 for i in range(len(s)): try: if int(s[i])…… 题解列表 2021年04月24日 0 点赞 0 评论 222 浏览 评分:0.0
大家可以参考一下 摘要:解题思路:我自己都不知道为什么加个while true就能通过,不加不通过,两个注意点一个字符长度出1,没有回文就出0,利用find函数不断遍历找相同字符判断回文注意事项:参考代码:while Tru…… 题解列表 2021年04月23日 0 点赞 0 评论 546 浏览 评分:9.9
直接计算(Python) 摘要:n = int(input())while n: list1=list(map(int,input().split())) list1.pop(0) list1.sort() …… 题解列表 2021年04月21日 0 点赞 0 评论 252 浏览 评分:0.0
直接转换(Python) 摘要:N=int(input())list1=[]for i in range(N): list2=list(map(int,input().split())) list1.append(lis…… 题解列表 2021年04月21日 0 点赞 0 评论 255 浏览 评分:0.0
1389: 程序员的表白 python 摘要:解题思路:注意python输出会默认换行,需要填入end参数注意事项:换行参考代码:while True: try: a = int(input()) f…… 题解列表 2021年04月20日 0 点赞 0 评论 375 浏览 评分:0.0