题解列表
1480: 模拟计算器
摘要:解题思路:注意事项:参考代码:while True: try: a, b, c = map(str, input().split()) if (c == '+……
1503: 蓝桥杯算法提高VIP-前10名
摘要:解题思路:注意事项:参考代码:n=int(input())lst=list(map(int,input().split()))lst2=sorted(lst,reverse=True)for i in……
1481: 蓝桥杯算法提高VIP-剪刀石头布
摘要:解题思路:注意事项:参考代码:a,b=map(int,input().split())if (a==0 and b==2) or (a==1 and b==0) or (a==2 and b==1):……
1466: 蓝桥杯基础练习VIP-字符串对比
摘要:解题思路:注意事项:参考代码:def judge(m,n): if len(m)!=len(n): return 1 elif m==n: return 2 ……
1118: Tom数(python)
摘要:解题思路:注意事项:补充大佬解法,要加上except EOFError才能运行通过参考代码:while True: try: print(sum([int(i) for i in ……
1395: 倒数第二
摘要:解题思路:注意事项:参考代码:n = int(input())while n != 0: try: x = int(input()) a = list(map(int……
1649: 蓝桥杯算法训练VIP-特殊的数字四十
摘要:解题思路:创建一个for循环,里面套一个for循环和一个if判断。注意事项:参考代码:for i in range(1000,10000): cnt = 0 for j in str(i)……
字符串对比,100%通过!!!
摘要:解题思路:注意事项:参考代码:a = input()b = input()if len(a) != len(b): print(1)elif a == b: print(2)elif a.……