柚茶_Rola
柚茶_Rola
全部文章
分类
归档
标签
去牛客网
登录
/
注册
柚茶_Rola的博客
全部文章
(共451篇)
题解 | #求最小公倍数#
A,B = list(map(int,input().split())) ls = [] for i in range(1,int(A*B**0.5)+1): if (A%i == 0) and (B%i == 0): ls.append(i) print(int(A*B/l...
2024-10-18
0
54
题解 | #记负均正II#
ls = [] while True: try: ls.append(int(input())) except: break ls1 = [] ls2 = [] for i in ls: if i >= 0: ls1.ap...
2024-10-18
0
52
题解 | #字符统计#
s = input() ss = sorted(set(s)) sss = sorted(ss,key=lambda x:s.count(x),reverse= True) print(''.join(sss))
2024-10-18
0
31
题解 | #自守数#
def f(x): if str(x*x)[-len(str(x)):] == str(x): return True return False n = int(input()) c = 0 for i in range(n+1): if f(i)...
2024-10-18
0
49
题解 | #记负均正#
n = int(input()) ls = list(map(int,input().split())) ls1 = [] ls2 = [] for i in ls: if i == 0: continue elif i > 0: ls1.app...
2024-10-18
0
35
题解 | #表示数字#
#Jkdi*234*klowe*90*a*3* s = input() a = '' pre_char = '' for i in s: if i.isdigit() and (not pre_char.isdigit()): a +='*' elif (not i....
2024-10-18
0
33
题解 | #记票统计#
n = int(input()) ls = list(input().split()) m = int(input()) ld = list(input().split()) d = {} c = 0 for i in ls: if i not in d: c += ld.c...
2024-10-18
0
59
题解 | #走方格的方案数#
def f(x,y): if x == 0 or y == 0: return 1 else: return f(x-1,y)+f(x,y-1) n,m = list(map(int,input().split())) print(f(n,m))
2024-10-18
0
31
题解 | #整型数组合并#
n = int(input()) ls1 = list(map(int,input().split())) m = int(input()) ls2 = list(map(int,input().split())) ls3 = ls1 +ls2 ls4 = list(set(ls3)) ls4.so...
2024-10-17
0
42
题解 | #尼科彻斯定理#
m = int(input()) ls = [] for i in range(m*m-m+1,m*m+m): if i%2 == 1: ls.append(i) print('+'.join(map(str,ls)))
2024-10-17
0
48
首页
上一页
4
5
6
7
8
9
10
11
12
13
下一页
末页