2789: 骑车与走路 摘要:解题思路:注意事项:参考代码:a = int(input())if a / 3 + 50 < a / 1.2: print('Bike')elif a / 3 + 50 == a…… 题解列表 2022年12月01日 0 点赞 0 评论 462 浏览 评分:9.9
2788: 晶晶赴约会 摘要:解题思路:注意事项:参考代码:import sys a = int(input())if a < 1 or a > 7: sys.exit() #退出程序elif a != …… 题解列表 2022年12月01日 0 点赞 0 评论 460 浏览 评分:6.0
同因查找(还行) 摘要:解题思路:注意事项:参考代码:for i in range(10,1000): if i%2==0 and i%3==0 and i%7==0: print(i) …… 题解列表 2022年12月01日 0 点赞 0 评论 282 浏览 评分:0.0
求偶数和(还行的解法) 摘要:解题思路:注意事项:参考代码:n=int(input())sn=0lit=list(map(int,input().split()))for i in lit: if i%2==0: …… 题解列表 2022年12月01日 0 点赞 0 评论 366 浏览 评分:0.0
2787: 有一门课不及格的学生 摘要:解题思路:注意事项:参考代码:import sysa , b = map(int,input().strip().split())if a < 0 or a > 100 or b < 0 or b >…… 题解列表 2022年11月29日 0 点赞 2 评论 594 浏览 评分:9.9
2786: 判断能否被3、5、7整除 摘要:解题思路:不用循环,只用条件判断语句注意事项:参考代码:a = int(input())if a % 3 == 0 and a % 5 == 0 and a % 7 == 0: print(&#…… 题解列表 2022年11月29日 0 点赞 0 评论 688 浏览 评分:2.0
2785: 判断一个数能否同时被3和5整除 摘要:解题思路:注意事项:参考代码:import sysa = int(input())if a < -1000000 or a > 1000000: sys.exit() …… 题解列表 2022年11月29日 0 点赞 0 评论 476 浏览 评分:8.0
有点繁琐,不过有注释 摘要:参考代码:ISBN=input()x=ISBN.replace('-','') #把ISBN号的-去除X=[] #存储ISBN号尾不为X的ISBN数字a="" #存储I…… 题解列表 2022年11月28日 0 点赞 0 评论 376 浏览 评分:0.0
2782: 整数大小比较 摘要:while 1: try: while 1: x,y = map(int,input().strip().split()) if (x …… 题解列表 2022年11月27日 0 点赞 0 评论 375 浏览 评分:0.0
编写题解 1030: [编程入门]二维数组的转置 摘要:解题思路:将数组处理为最原始的样子(也就[[1,2,3],[4,5,6],[7,8,9]])注意事项:理解二维数组的运算方式参考代码:lst = []for i in range(3): j =…… 题解列表 2022年11月27日 0 点赞 0 评论 679 浏览 评分:9.9