大橙子🍊MY.
大橙子🍊MY.
全部文章
分类
题解(7)
归档
标签
去牛客网
登录
/
注册
大橙子🍊MY.的博客
全部文章
(共6篇)
提取不重复的数
a = [x for x in input()] a.reverse() list1 = [] for i in a: if i not in list1: list1.append(i) print(''.join(list1))
2020-09-23
0
507
先求最大公约数,再求最小公倍数
a, b = map(int, input().split()) def gy(a, b): while (b != 0): c = a % b a = b b = c return a print(int((a * b) /...
2020-09-23
24
1255
python--公共字符串计算
import sys while True: a = sys.stdin.readline().strip() if a == '': break b = sys.stdin.readline().strip() m = len(a) n = ...
2020-09-22
0
720
极度不优雅
import sys list1 = [] dic = { # 'reset': 'reset what', 'reset board': 'board fault', 'board add': 'where to add', 'board delete': 'no...
2020-09-22
3
822
放苹果问题,为啥通不过。。。好像int行不通啊,IDE里没问题
import sys def apple_method(m,n): if m == 0 or n ==1: return 1 if n > m: return apple_method(m,m) else: return apple_...
2020-09-22
0
505
计算完全数的个数
#计算完全数的个数 a = int(input())if a > 0 and a <= 500000: list0 = [] for i in range(1, a + 1): list1 = [] for j in range(1, i): ...
2020-09-22
0
587