1770: [编程入门]链表之报数问题 摘要:解题思路:所有人看成一个列表,报到3时出圈看成3之前的人移到列表最后去,继续报3再移到后面去直到只乘2人,第一个报1和3出圈 n = int(input()) if n ==1: pri…… 题解列表 2021年12月29日 0 点赞 2 评论 527 浏览 评分:6.0
编写题解 1671: 小九九 摘要:for i in range(1,10): for j in range(1,i+1): print('%-6s'%(f'{j}*{i}={i*j}…… 题解列表 2021年12月29日 0 点赞 0 评论 539 浏览 评分:0.0
编写题解 1670: 拆分位数 摘要:解题思路:注意事项:参考代码: a= input() for i in a[::-1]: print(i,end=' ')…… 题解列表 2021年12月29日 0 点赞 0 评论 472 浏览 评分:0.0
1636: 蓝桥杯算法训练VIP-整除问题 摘要:解题思路:注意事项:参考代码:a,b,c = map(int,input().split()) for i in range(a,b+1): if i % c ==0: …… 题解列表 2021年12月29日 0 点赞 0 评论 480 浏览 评分:9.9
解 1635: 蓝桥杯算法训练VIP-整数平均值 摘要:解题思路:注意事项:参考代码: n = int(input()) s = list(map(int,input().split())) print(int(sum(s)/len(s)))…… 题解列表 2021年12月29日 0 点赞 0 评论 499 浏览 评分:0.0
586: 蓝桥杯算法训练VIP-A+B problem 摘要:解题思路:注意事项:参考代码:while True: try: a,b=map(int,input().strip().split()) print(a+b) except: …… 题解列表 2021年12月29日 0 点赞 0 评论 394 浏览 评分:9.9
编写题解 1585: 蓝桥杯算法训练VIP-链表数据求和操作 摘要:解题思路:注意事项:参考代码:s=c=0 while True: try: a,b=map(int,input().split()) s += a c += b excep…… 题解列表 2021年12月29日 0 点赞 0 评论 879 浏览 评分:9.9
整除问题直接分离数字循环判断 摘要:解题思路:注意事项:参考代码:a=input()min=int(a.split()[0])max=int(a.split()[1])factor=int(a.split()[2])for i in r…… 题解列表 2021年12月28日 0 点赞 0 评论 486 浏览 评分:0.0
数组查找和替换 摘要:解题思路:注意事项:参考代码:a=input()m=int(a.split()[0])n=int(a.split()[1])x=[]c=input().split()for i in range(0,…… 题解列表 2021年12月28日 0 点赞 0 评论 462 浏览 评分:0.0
1584: 蓝桥杯算法训练VIP-判定字符位置(python) 摘要:解题思路:注意事项:参考代码:let =['a','e','i','o','u'] s = input() sum …… 题解列表 2021年12月28日 0 点赞 0 评论 446 浏览 评分:9.9