人生苦短,但求成长
人生苦短,但求成长
全部文章
题解
归档
标签
去牛客网
登录
/
注册
人生苦短,但求成长的博客
全部文章
/ 题解
(共64篇)
题解 | #求最小公倍数#都快忘了
while True: try: m, n = map(int, input().split()) max_num = m if m >= n else n min_num = n if m >= n else ...
Python3
2022-02-28
9
1378
题解 | #求解立方根#好难想啊
n = float(input()) if n == 0: print(0.0) elif n > 0: sig = 1 else: sig = -1 n = abs(n) if n >= 1: start = 1 end = n else:...
Python3
2022-02-28
6
1459
题解 | #字符逆序#这题应该是最短的了吧
while True: try: str_input = input() print(str_input[::-1]) except: break
Python3
2022-02-28
5
0
题解 | #记负均正II#记住while True是用来处理输入的
num_list = [] while True: try: num_list.append(int(input())) except: over_list, down_list = [], [] for i in ...
Python3
2022-02-28
8
1486
题解 | #Redraiment的走法#想了两天了
while True: try: n = int(input()) num_list = list(map(int, input().split())) help_list = [1] * n fo...
Python3
2022-02-28
7
984
题解 | #字符统计#这思路真的清奇
while True: try: str_input = input() new_list = list(set(str_input)) print(''.join(sorted(new_list, key=lambda x: str_input.count(x) * 100...
Python3
2022-02-26
5
713
题解 | #字符统计#用sorted套娃
while True: try: str_input = input() new_list = list(set(str_input)) str_dict = {} for c in new_list: ...
Python3
2022-02-26
15
1385
题解 | #输入整型数组和排序标识,对其元素按照升序或降序进行排序#
while True: try: m = int(input()) num_list = list(map(int, input().split())) n = int(input()) if n == 0: ...
Python3
2022-02-26
1
289
题解 | #等差数列#
while True: try: n = int(input()) result = 0 next_num = 2 for i in range(1, n + 1): result += nex...
Python3
2022-02-26
4
759
题解 | #自守数#
while True: try: n = int(input()) count = 0 for i in range(n + 1): res = i ** 2 if str(res).e...
Python3
2022-02-26
19
748
首页
上一页
1
2
3
4
5
6
7
下一页
末页