小白也能懂的入门代码 摘要:解题思路:注意事项:参考代码: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 评论 498 浏览 评分:8.7
编写题解 1138: C语言训练-求矩阵的两对角线上的元素之和 摘要:解题思路:注意事项:本地可以通过编程,但是在这里提交后有17%的错误,我也不知道问题出在哪里.......参考代码:N = eval(input())ls = [input().split()]whi…… 题解列表 2022年05月02日 0 点赞 0 评论 402 浏览 评分: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 评论 561 浏览 评分:0.0
编写题解 1005: [编程入门]温度转换 摘要:解题思路:注意事项:参考代码:f=eval(input()) c=5*(f-32)/9 print('c=%.2f'%c)…… 题解列表 2022年05月02日 0 点赞 0 评论 681 浏览 评分:0.0
通过for循环来求解 摘要:解题思路:注意事项:参考代码:list1=list(map(int,input().split()))list2=list(map(int,input().split()))list3=[]for i…… 题解列表 2022年05月01日 0 点赞 0 评论 561 浏览 评分:0.0
编写题解 1003: [编程入门]密码破译 摘要:解题思路:注意事项:参考代码:str=input() for i in str: print(chr(ord(i)+4),end='')或者直接print("Glmre")…… 题解列表 2022年05月01日 0 点赞 0 评论 479 浏览 评分:0.0
编写题解 1001: [编程入门]第一个HelloWorld程序 摘要:解题思路:注意事项:参考代码:print('**************************\nHello World!\n**************************\n'…… 题解列表 2022年05月01日 0 点赞 0 评论 424 浏览 评分:0.0
编写题解 1261: 速算24点(python) 摘要:itertools是一个迭代器模块,具体功能详见 https://docs.python.org/3/library/itertools.html#参考代码:import itertools c…… 题解列表 2022年04月30日 0 点赞 0 评论 790 浏览 评分:9.9
编写题解 1142: C语言训练-立方和不等式(python) 摘要:n = int(input()) s = t = 0 i = 1 while t <= n: t += pow(i, 3) s += 1 i += 1 prin 题解列表 2022年04月30日 0 点赞 0 评论 548 浏览 评分:9.9
利用匿名函数来求 摘要:解题思路:调用filter这个过滤函数,再在函数里定义一个匿名函数来筛选列表里大于平均值的数注意事项:参考代码:numbers=list(map(int,input().split()))averag…… 题解列表 2022年04月30日 0 点赞 0 评论 660 浏览 评分:0.0