牛客857079027号
牛客857079027号
全部文章
题解
未归档(1)
归档
标签
去牛客网
登录
/
注册
牛客857079027号的博客
全部文章
/ 题解
(共51篇)
题解 | #删除字符串中出现次数最少的字符#
while True: try: inp = input() d = {} #建立空字典 for i in inp: #建立键值对,字母:出现次数 d[i] = inp.count(i) a = min(...
Python3
2021-12-16
0
333
题解 | #字符串排序#
n = int(input()) list_input = [input() for i in range (n)]#接收n个输入 list_dic = ' '.join(sorted(list_input)).split(' ')#空格加入列表,空格分割元素 for i in list_dic:#...
Python3
2021-12-16
0
305
题解 | #字符串分隔#
while True: try: def back(n,a): if n==0: #出口或一开始字符串长度小于8的情况 print(a+'0'*(8-len(a))) ...
Python3
2021-12-16
0
335
题解 | #字符串加密#
while True: try: a = input() d = input() e = a.upper() f = d.upper() b = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' ...
Python3
2021-12-14
0
244
题解 | #图片整理#
while True: try: a = input() b = sorted(a) print(''.join(b)) except: break
Python3
2021-12-13
0
203
题解 | #蛇形矩阵#
while True: try: a = int(input()) res = [] for i in range(a): if i == 0: res = [(j+2)...
Python3
2021-12-13
0
261
题解 | #求小球落地5次后所经历的路程和第5次反弹的高度#
h = int(input()) print(format(2.875*h,'.6f').rstrip('0')) print(format(1/(2**5)*h,'.6f').rstrip('0'))
Python3
2021-12-13
0
219
题解 | #统计每个月兔子的总数#
while True: try: n = int(input()) def count(i)...
Python3
2021-12-08
0
291
题解 | #杨辉三角的变形#
while True: try: n = int(input()) if n<3 : ...
Python3
2021-12-08
0
333
题解 | #完全数计算#
while True: try: a = int(input()) d = [] for i in range(2, a+1): s = 0 for j in range (1, int(i/2+1)): ...
Python3
2021-12-08
0
306
首页
上一页
1
2
3
4
5
6
下一页
末页