python直观解法 摘要:解题思路:只要算出每次考试各科可能的情况,然后对其分支计算下一次考试可能的情况直到最后一场考试注意事项:python中整型无范围限制,所以可以最后再取余参考代码:# 政治,综合,历史,地理result…… 题解列表 2022年06月06日 0 点赞 0 评论 440 浏览 评分:0.0
小南解题-国赛真题-答疑--323ms 摘要:'''zgn946,14:41 2022/6/5'''n = int(input())timelist = []sumlist = []ci = 0re…… 题解列表 2022年06月05日 0 点赞 0 评论 507 浏览 评分:0.0
小南解题--国赛真题-天干地支--456ms 摘要:'''zgn946,10:39 2022/6/5'''tiangan = ["jia","yi","bing","ding","wu","ji","ge…… 题解列表 2022年06月05日 0 点赞 0 评论 422 浏览 评分:0.0
编写题解 1169: 绝对值排序 摘要:解题思路:注意事项:参考代码:while True: a = list(map(int,input().split())) if a[0]==0: break else…… 题解列表 2022年06月04日 0 点赞 0 评论 423 浏览 评分:0.0
清晰好理解-----2021 python 蓝桥杯决赛“二进制问题”也不是太难 摘要:##废话不多说,直接上代码 ```python n, k = map(int, input().split()) bstr = str(bin(n))[2:] def Cn(m, n)…… 题解列表 2022年06月04日 0 点赞 0 评论 768 浏览 评分:9.9
编写题解 1136: C语言训练-求具有abcd=(ab+cd)2性质的四位数 摘要:解题思路:注意事项:参考代码:for i in range(1000,10000): a = i%100 b = i//100 if (a+b)**2 == i: pr…… 题解列表 2022年06月03日 0 点赞 0 评论 444 浏览 评分:0.0
lf-python _解法 摘要:解题思路:同本人c语言解法一致注意事项:参考代码: sum=100.0 n=int (input()) temp=100.0 for i in range(1,n): …… 题解列表 2022年06月03日 0 点赞 0 评论 469 浏览 评分:0.0
约瑟夫环奥运会开幕式 摘要:解题思路:注意事项:之前的想法一直要数的人去动,这个程序反过来想,数数的人站在队头不动就和卖票的一样,数到那个数踢出去就很快剩下的继续转圈圈参考代码:n,m=map(int,input().split…… 题解列表 2022年06月03日 0 点赞 0 评论 405 浏览 评分:0.0
愚蠢的摄影师 摘要:解题思路:只好到规律就很简单了注意事项:无参考代码:n = int(input())results = {1: 1, 2: 1, 3: 2, 4: 4, 5: 6}if n <= 5: prin…… 题解列表 2022年06月03日 0 点赞 0 评论 568 浏览 评分:0.0
换位置——Python直观解法 摘要:解题思路: 假设现在是6个人,就是初始:[1, 2, 3, 4, 5, 6],预期:[1,6, 5, 4, 3, 2],第一个人不动,从初始状态的第二个人开始换位,“2”有两种选择,①向左换位,一直与…… 题解列表 2022年06月02日 0 点赞 0 评论 643 浏览 评分:0.0