查找最大元素-题解(Python代码) 摘要: ```python while True: ipt = input() list1 = list(ipt) # list2用于存放最大字母所在下标 list2 …… 题解列表 2020年03月25日 0 点赞 0 评论 582 浏览 评分:0.0
日期排序-题解(Python代码)【答案有问题,以后再思考】 摘要:人都傻了,测试了N次,不知道格式上到底除了什么问题。以后有空再好好想一下,先备份了。 ```python items = [] temps = [] while True: …… 题解列表 2020年03月25日 0 点赞 1 评论 1130 浏览 评分:9.9
方砖问题-题解(Python代码) 摘要:#####解题思路 1、如果输入的边长N为偶数:则4个边长为(N/2)的方砖就可以拼成一个大方砖 2、如果输入的边长N为奇数:分析可知用,用1个边长为(N+1)/2 和 3个边长为(N-1)/2,…… 题解列表 2020年03月25日 0 点赞 1 评论 858 浏览 评分:0.0
敲七游戏-题解(Python代码) 摘要:```python num = int(input()) count = 0 for i in range(2, num + 1): # 如果i能被7整除,则count+1并跳过本次循环…… 题解列表 2020年03月24日 0 点赞 0 评论 1888 浏览 评分:9.9
整除的尾数-题解(Python代码) 摘要:```python while True: ipt = input().split() m = int(ipt[0]) n = int(ipt[1]) if …… 题解列表 2020年03月24日 0 点赞 0 评论 669 浏览 评分:0.0
数字统计-题解(Python代码) 摘要:```python num = int(input()) list1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] for i in range(1, num + 1): …… 题解列表 2020年03月24日 0 点赞 0 评论 590 浏览 评分:9.5
数列排序-题解(Python代码) 摘要:```python num = int(input()) while num > 0: ipt = input().split() # 创建列表list1,用于存放排序后的元素 …… 题解列表 2020年03月24日 0 点赞 0 评论 739 浏览 评分:0.0
排列-题解(Python代码) 摘要:```python import itertools count = int(input()) while count > 0: ipt = input() # 每个数字之间有一个…… 题解列表 2020年03月24日 0 点赞 1 评论 725 浏览 评分:9.9
字符排列问题-题解(Python代码) 摘要:全排列的算法自己想了很久都没有想出来,所以就搜索了一下具体实现。原来python只要导入包就可以实现。 抽时间还是理解一下具体实现方法 ```python # 导入相关包 import i…… 题解列表 2020年03月24日 0 点赞 0 评论 499 浏览 评分:0.0
密码截获 (Python代码) 摘要:```python # 判断一个字符串是否为回文 def func(str1): length = len(str1) str2 = "" for i in rang…… 题解列表 2020年03月24日 0 点赞 0 评论 904 浏览 评分:9.9