1986——————鸡兔同笼 摘要: s = int(input()) #输入整数s(20≤s≤40) sum = 80 #脚共有80只,也就是鸡兔分别40只(各两只脚平均) a = 2*s-40 #用整数…… 题解列表 2022年07月08日 0 点赞 0 评论 587 浏览 评分:0.0
1979——————求平均工资 摘要: n = int(input()) #输入员工个数 s = [] #空列表 for i in range(1,n+1): #迭代遍历员工个数 a = in…… 题解列表 2022年07月08日 0 点赞 0 评论 426 浏览 评分:0.0
1978——————分类计算 摘要: a,b = map(int,input().split()) sum = a + b square = pow(a,2) + pow(b,2) if square…… 题解列表 2022年07月08日 0 点赞 0 评论 289 浏览 评分:0.0
1952——————求长方形的面积 摘要: a,b = map(int,input().split()) print('C:{}'.format(a*2+b*2)) print('S:{}'.format(a*b))…… 题解列表 2022年07月08日 0 点赞 0 评论 548 浏览 评分:0.0
1864——————数日子 摘要: n = [31,28,31,30,31,30,19] #已知2018年1月至7月每月的天数 sum = 0 #初始化为0 for i in n: su…… 题解列表 2022年07月08日 0 点赞 0 评论 420 浏览 评分:0.0
1853——————数列排序 摘要: n = int(input()) for i in sorted(list(map(int,input().split()))):print(i,end=' ') n…… 题解列表 2022年07月08日 0 点赞 0 评论 519 浏览 评分:0.0
1670——————拆分位数 摘要: for i in input()[::-1]:print(i,end=' ') n = str(input()) for i in n[::-1]:print(i,en…… 题解列表 2022年07月08日 0 点赞 0 评论 381 浏览 评分:0.0
1503——————前10名 摘要: n = int(input()) m = sorted(list(map(int,input().split())))[::-1] for i in range(10):p…… 题解列表 2022年07月09日 0 点赞 0 评论 410 浏览 评分:0.0