牛客248819649号
牛客248819649号
全部文章
分类
题解(13)
归档
标签
去牛客网
登录
/
注册
牛客248819649号的博客
全部文章
(共12篇)
题解 | #查找兄弟单词#
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
138
题解 | #牛牛的素数和#
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
126
题解 | #简写单词#
a = map(str, input().split()) lst = [] for i in a: lst.append(i[0].upper()) print(''.join(lst))
Python3
字符串
2022-07-28
0
138
题解 | #公务员面试#
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
122
题解 | #牛牛的快递#
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
146
题解 | #输入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
270
题解 | #输入n个整数,输出其中最小的k个#
while True: try: opt = input().split() n = int(opt[1]) &nbs...
Python3
2022-03-16
0
150
题解 | #取近似值#
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
190
题解 | #找出字符串中第一个只出现一次的字符#
lst = input() lst2 = [] for i in lst: if lst.count(i) == 1: lst2.append(i) print...
Python3
2022-03-11
0
140
题解 | #图片整理#
a = input() lst = [] for i in a: lst.append(ord(i)) list2 = [] for i in sorted(lst): list2.append(chr(i)) print(''.join(li...
Python3
2022-03-04
0
178
首页
上一页
1
2
下一页
末页