[编程入门]利润计算用if-elif-else求解------Python 摘要:解题思路:根据题目一步一步求解注意事项:最后输出的是整数参考代码:i=int(input())if i<=100000: x=i*0.1elif i<=200000: x=100000*0…… 题解列表 2021年11月02日 0 点赞 0 评论 1250 浏览 评分:4.7
[编程入门]分段函数求值------Python 摘要:解题思路:注意事项:参考代码:x=int(input())if x>=10: print(3*x-11)elif x>=1: print(2*x-1)else: print(x)…… 题解列表 2021年11月02日 0 点赞 0 评论 1714 浏览 评分:8.9
[编程入门]温度转换------Python 摘要:解题思路:注意事项:参考代码:f=float(input())c=5*(f-32)/9print('c={0:.2f}'.format(c))…… 题解列表 2021年11月02日 0 点赞 5 评论 1345 浏览 评分:8.3
[入门]用if-elif-else找出a,b,c中找出最大值------Python 摘要:解题思路:a>b时比较a>c成立时a大否则c大,a>b不成立时判断b>c成立时b大否则c大注意事项:参考代码:a,b,c=map(int,input().split())if a>b: if a…… 题解列表 2021年11月02日 0 点赞 0 评论 1109 浏览 评分:7.3
1117: K-进制数 python 组合数解法 摘要: n = int(input()) k = int(input()) def c(n,m): #n个里面选m个 if (n…… 题解列表 2021年11月02日 0 点赞 0 评论 710 浏览 评分:9.9
1116: IP判断 python 摘要: def qiandao0(li): for j in range(1,len(li)): if li[j] != '0' and li[j-1] =…… 题解列表 2021年11月01日 0 点赞 0 评论 421 浏览 评分:6.0
1115: DNA python版本 摘要:```python N = int(input()) for z in range(N): if z != 0: print() a,b=map(int,input().strip(…… 题解列表 2021年11月01日 0 点赞 0 评论 515 浏览 评分:9.9
1095 清晰解答 摘要:解题思路:注意事项:就是坑,考虑的细节较多参考代码:while True: try: i,j = map(int,input().split()) print(i,j…… 题解列表 2021年11月01日 0 点赞 0 评论 965 浏览 评分:9.9
1111: Cylinder ,python版本 摘要:pi = 3.14159265358while True: try: w,h=map(int,input().strip().split()) if w == 0 and h == 0: …… 题解列表 2021年11月01日 0 点赞 1 评论 443 浏览 评分:0.0
1171: 蟠桃记 摘要:解题思路:从最后一天往前推注意事项:参考代码:while True: n=int(input()) s=1 for i in range(n-1): s=(s+1)*2…… 题解列表 2021年11月01日 0 点赞 0 评论 458 浏览 评分:0.0