牛客248819649号
牛客248819649号
全部文章
分类
题解(13)
归档
标签
去牛客网
登录
/
注册
牛客248819649号的博客
全部文章
(共16篇)
题解 | #查找兄弟单词#
while True: try: st = input().split() n = int(st[0]) n1 = st[-2] n2 = st[1:-2] k = int(st[-1]) data = [] ...
Python3
字符串
2022-09-04
1
212
题解 | #牛牛的素数和#
a, b = map(int, input().split()) num = [] i = 2 for i in range(a, b+1): j = 2 for j in range(2, i): &...
Python3
2022-07-29
0
186
题解 | #简写单词#
a = map(str, input().split()) lst = [] for i in a: lst.append(i[0].upper()) print(''.join(lst))
Python3
字符串
2022-07-28
0
216
题解 | #公务员面试#
while True: try: opt = list(map(int, input().split())) lst = [] for i in opt: lst.append(i) res = sorted(lst) ...
Python3
2022-07-20
0
199
题解 | #三角形判断#
while True:try:a, b, c = map(int, input().split())if a + b > c and a + c > b and b + c > a:if a == b == c:print("Equilateral triangle!&q...
pypy3
2022-07-13
0
208
题解 | #牛牛的快递#
opt = list(input().split())weight = float(opt[0])n = str(weight).split('.')[1]m = str(weight).split('.')[0]if weight <= 1 and opt[1...
Python3
字符串
2022-07-13
0
207
题解 | #牛牛的线段#
x1, y1 = map(int, input().split()) x2, y2 = map(int, input().split()) print((x1 - x2) ** 2 + (y1 - y2) ** 2)
2022-07-07
0
161
题解 | #输入n个整数,输出其中最小的k个#
num1 = int(input()) num2 = [int(i) for i in input().split()] num3 = int(input()) if num3 == 0: print(' '.join(map(str, sorted(num2)))) i...
Python3
2022-03-16
1
349
题解 | #输入n个整数,输出其中最小的k个#
while True: try: opt = input().split() n = int(opt[1]) &nbs...
Python3
2022-03-16
0
238
题解 | #取近似值#
opt = input() a = int(opt.split(".")[0]) b = opt.split(".")[1] lst = [] for i in b: lst.append(int(i)) if lst[0] >= 5: ...
Python3
2022-03-15
0
271
首页
上一页
1
2
下一页
末页