2801: 奇数求和 摘要:解题思路:注意事项:参考代码:s = 0a,b = map(int,input().split())for i in range(a,b+1): if i % 2 != 0: s …… 题解列表 2023年02月06日 0 点赞 0 评论 459 浏览 评分:0.0
python零花钱解法 思路简单 摘要:在网站里面跑不出来 不过可以代入数据进行验算 都是对的nc=list(map(int,input().split()))N=nc[0]#N种金额C=nc[1]#每种金额硬币的数量# print(N)输…… 题解列表 2023年02月06日 0 点赞 0 评论 549 浏览 评分:0.0
1480: 模拟计算器 思路简单 if判断 摘要:解题思路:输入很简单,不用多说;接下来用5个if判断语句判断加减乘除符号,就完成了。注意事项:参考代码:a,b,c=map(str,input().split())if(c=='+')…… 题解列表 2023年02月06日 0 点赞 0 评论 302 浏览 评分:0.0
2800: 多边形内角和 摘要:解题思路:注意事项:参考代码:m = 0n = int(input())a = list(map(int,input().split()))for i in a: m += iprint((n …… 题解列表 2023年02月06日 0 点赞 0 评论 354 浏览 评分:8.0
2799: 奥运奖牌计数 摘要:解题思路:注意事项:参考代码:m1 = m2 = m3 = 0n = int(input())for i in range(0,n): a = list(map(int,input().spli…… 题解列表 2023年02月06日 0 点赞 0 评论 540 浏览 评分:9.9
2798: 整数序列的元素最大跨度值 摘要:解题思路:注意事项:参考代码:a = int(input())n = list(map(int,input().split()))print(max(n) - min(n))…… 题解列表 2023年02月05日 0 点赞 1 评论 403 浏览 评分:9.9
核电站问题 摘要:解题思路:注意事项:参考代码:try: while True: n=int(input()) lis = [1,2,4,7] for i in rang…… 题解列表 2023年02月05日 0 点赞 0 评论 222 浏览 评分:0.0
最多约数问题 摘要:解题思路:很难受这个题我写不出能AC的代码,一部分是因为PYTHON的特性,一部分是我太菜了,下方这个代码是我学习仿照C++栏中CtrlCV工程师老哥的代码,这个思路我是完全想不到,勉强看懂了自己恐怕…… 题解列表 2023年02月04日 0 点赞 0 评论 363 浏览 评分:9.9
1256: 诡秘的余数 我无语了。。。 摘要:解题思路:写这题时,我无语了。。。只要把“+”改成“%”就好了。注意事项:参考代码:while True: try: a,b=map(int,input().strip().…… 题解列表 2023年02月03日 0 点赞 0 评论 401 浏览 评分:0.0
1235: 检查金币 摘要:解题思路:题目可以直接用10个for循环搞定,虽然代码不是很简洁,但思路简单。注意事项:参考代码:while True: try: n=int(input()) fo…… 题解列表 2023年02月03日 0 点赞 0 评论 230 浏览 评分:0.0