C语言训练-尼科彻斯定理题解 摘要:解题思路:注意事项:参考代码:x=int(input())m=x**3k=x//2t=str(x)+"*"+str(x)+"*"+str(x)+"="+str(m)+"="if x%2!=0: f…… 题解列表 2021年09月12日 0 点赞 0 评论 592 浏览 评分:9.9
简单的a+b题解 摘要:解题思路:注意事项:参考代码:while True:#while True 语句中一定要有结束该循环的break语句,否则会一直循环下去的 try: #Python 中,用try except…… 题解列表 2021年09月12日 0 点赞 0 评论 2283 浏览 评分:8.8
使用map和list构建列表求平均值 摘要:解题思路:注意事项:参考代码:lista = list(map(int,input().split(" ")))avg = sum(lista)/len(lista)count = 0for i in…… 题解列表 2021年09月09日 0 点赞 1 评论 1043 浏览 评分:9.9
六行代码解决! 摘要:解题思路:先创建一个空列表,然后把输入的字符串利用循环加到列表里,给列表利用sort函数升序排列然后输出注意事项:参考代码:d=[]#创建空列表for i in range(3): d.appe…… 题解列表 2021年09月03日 0 点赞 0 评论 468 浏览 评分:2.0
Little Ke's problem Python解决 摘要:解题思路: 简单的变量存储值并输出参考代码:input_a = input()print("What is your name? Hello "+input_a+", nice to meet …… 题解列表 2021年08月28日 0 点赞 0 评论 579 浏览 评分:9.9
两行代码搞定 摘要:解题思路:利用list和map、循环直接输入一个二维列表注意事项:参考代码: a=[list(map(int,input().split())) for i in range(3)] …… 题解列表 2021年08月25日 0 点赞 0 评论 591 浏览 评分:6.7
求[X,Y]内被除3余1并且被除5余3的整数的和 Python解决 摘要:解题思路: 使用for和if进行循环和判断参考代码:a,b = map(int,input().split())count = 0for i in range(a,b): if i % 3…… 题解列表 2021年08月24日 0 点赞 1 评论 660 浏览 评分:9.9
数组的距离(双指针) 摘要:解题思路:用双指针遍历两个数组,来找最小距离,如果此时左指针指向的元素小于有指针指向的元素,则让左指针加1,否则让右指针加1,如果两者指向的元素一样,则已经到了最小距离,跳出循环。注意事项:参考代码:…… 题解列表 2021年08月24日 0 点赞 0 评论 927 浏览 评分:0.0
[编程入门]三个字符串的排序 Python解决 摘要:解题思路: 使用列表进行降序注意事项: 字母也可以比较大小,使用sort哦,参考代码:fonta = input()fontb = input()fontc = input()list =…… 题解列表 2021年08月23日 0 点赞 0 评论 572 浏览 评分:0.0
[编程入门]三个数字的排序 Python解决 摘要:解题思路: 使用列表,for循环等参考代码:number = list(map(int,input().split()))number.sort()number_a = ''fo…… 题解列表 2021年08月23日 0 点赞 0 评论 565 浏览 评分:0.0