2525: 信息学奥赛一本通T1627-最大公约数 摘要:解题思路:用c就不用想了,需要用到高精度,甚至高精度压位,用欧几里得算法也不行了,需要用二进制算法,比赛的时候要用一两百行。求教大佬后Python两行搞定。参考代码:from math import …… 题解列表 2022年02月04日 0 点赞 1 评论 649 浏览 评分:9.9
[编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:n = int(input())a = 0jiecheng = 1l = 0for i in range(1, n+1): a += 1 jiecheng *…… 题解列表 2022年02月04日 0 点赞 0 评论 187 浏览 评分:0.0
【露离】编写题解 1026: [编程入门]数字逆序输出 摘要:解题思路:两行搞定注意事项:参考代码:a=[i for i in input().split()]print(' '.join(a[::-1]))…… 题解列表 2022年02月04日 0 点赞 0 评论 221 浏览 评分:0.0
编写题解 1995: 画三角形 摘要:```python while True: n=int(input()) for i in range(1,n+1): print(('/\\'*i).cent…… 题解列表 2022年02月04日 0 点赞 0 评论 372 浏览 评分:9.9
python-倍数问题 摘要:解题思路:注意事项:参考代码:from cmath import inf n,k = map(int,input().strip().split()) …… 题解列表 2022年02月04日 0 点赞 0 评论 415 浏览 评分:7.0
1468: 蓝桥杯基础练习VIP-报时助手 摘要:解题思路:注意事项:参考代码:h,m=map(int,input().split()) d={0:'zero', 1: 'one', 2:'two…… 题解列表 2022年02月04日 0 点赞 0 评论 156 浏览 评分:0.0
1483: 蓝桥杯算法提高VIP-数组替换 摘要:解题思路:注意事项:参考代码:m,n=map(int,input().split()) a=list(map(int,input().split())) b=list(map(int,input(…… 题解列表 2022年02月04日 0 点赞 0 评论 183 浏览 评分:0.0
python-正则问题 摘要:解题思路:遇到‘(’时,res = res + dfs()遇到‘|’时,res = max(res,dfs())注意事项:参考代码:def dfs(): global s …… 题解列表 2022年02月04日 0 点赞 0 评论 345 浏览 评分:9.9
1479: 蓝桥杯算法提高VIP-删除数组中的0元素 摘要:解题思路:注意事项:参考代码:n=int(input()) ls=list(map(int,input().split())) while 0 in ls: ls.remove(0) …… 题解列表 2022年02月04日 0 点赞 0 评论 239 浏览 评分:0.0
1466: 蓝桥杯基础练习VIP-字符串对比 摘要:解题思路:注意事项:参考代码:n = input() m = input() def bj(a,b): s =0 for i in range(len(a)): …… 题解列表 2022年02月04日 0 点赞 0 评论 162 浏览 评分:0.0