很简单,三行搞定,容易理解 摘要:解题思路:注意事项:参考代码:def func(c): return 32+c*9/5for i in range(-100,151,5): print('c={}->f={}&#…… 题解列表 2022年05月03日 0 点赞 0 评论 260 浏览 评分:0.0
我写的有点复杂,死办法,将就看就好了 摘要:解题思路:注意事项:参考代码:list=list(map(int,input().split()))list2=[i for i in list if i>=0]list3=[v for v in l…… 题解列表 2022年05月03日 0 点赞 0 评论 281 浏览 评分:0.0
编写题解 1027: [编程入门]自定义函数处理最大公约数与最小公倍数(递归法) 摘要:解题思路:注意事项:参考代码:m,n=map(int,input().split())def maxgongyue(m,n): if n != 0 : return maxgong…… 题解列表 2022年05月03日 0 点赞 0 评论 315 浏览 评分:0.0
利用递归函数来求阶乘 摘要:解题思路:先定义一个函数,用递归思想求一个数的阶乘,再用for循环求1~30的每个数的阶乘,最后注意%.2e表示科学计数法并且保留两位小数注意事项:参考代码:def func(x): if x=…… 题解列表 2022年05月02日 0 点赞 0 评论 420 浏览 评分:0.0
1024: [编程入门]矩阵对角线求和 摘要:解题思路:注意事项:小弟代码先奉上为敬: a = list(map(int,input().split()))b = list(map(i…… 题解列表 2022年05月02日 0 点赞 0 评论 1009 浏览 评分:9.9
小白也能懂的入门代码 摘要:解题思路:注意事项:参考代码:for i in range(100,1000): a,b,c=str(i) if int(a)**3+int(b)**3+int(c)**3==int(i)…… 题解列表 2022年05月02日 0 点赞 0 评论 359 浏览 评分:8.7
编写题解 1138: C语言训练-求矩阵的两对角线上的元素之和 摘要:解题思路:注意事项:本地可以通过编程,但是在这里提交后有17%的错误,我也不知道问题出在哪里.......参考代码:N = eval(input())ls = [input().split()]whi…… 题解列表 2022年05月02日 0 点赞 0 评论 279 浏览 评分:0.0
编写题解 1007: [编程入门]分段函数求值 摘要:解题思路:注意事项:参考代码:x=eval(input()) if x <1: print(x) elif x>=1 and x<10: print(2*x-1) elif …… 题解列表 2022年05月02日 0 点赞 0 评论 356 浏览 评分:0.0
编写题解 1005: [编程入门]温度转换 摘要:解题思路:注意事项:参考代码:f=eval(input()) c=5*(f-32)/9 print('c=%.2f'%c)…… 题解列表 2022年05月02日 0 点赞 0 评论 494 浏览 评分:0.0
通过for循环来求解 摘要:解题思路:注意事项:参考代码:list1=list(map(int,input().split()))list2=list(map(int,input().split()))list3=[]for i…… 题解列表 2022年05月01日 0 点赞 0 评论 412 浏览 评分:0.0