龙灬胆
龙灬胆
全部文章
分类
归档
标签
去牛客网
登录
/
注册
龙灬胆的博客
全部文章
(共48篇)
题解 | #自守数#
while True: try: n = int(input()) count = 0 for i in range(n+1): if str(i ** 2)[-len(str(i)):] == str(i): ...
2023-10-08
0
289
题解 | #输入整型数组和排序标识,对其元素按照升降序排序#
while True: try: n = int(input()) numbers = list(map(int, input().split(' '))) rev = int(input()) if rev == 0: ...
2023-10-08
0
229
题解 | #字符统计#
while True: try: strings = input() dict_char = {} for i in strings: dict_char[i] = strings.count(i) # ...
2023-10-08
0
284
题解 | #求最大连续bit数#
while True: try: number = int(input()) bin_number = str(bin(number))[2:] # print(bin_number) result = sorted(bin_n...
2023-10-07
0
230
题解 | #统计大写字母个数#
while True: try: strings = input() chars_upper = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' count = 0 for i in strings: ...
2023-10-07
0
291
题解 | #矩阵乘法#
while True: try: n = int(input()) m = int(input()) k = int(input()) list1 = [] list2 = [] for i in...
2023-10-06
0
250
题解 | #字符串排序#
while True: try: strings = input() chars = '' for i in strings: if i.isalpha(): chars += i ...
2023-10-06
0
258
题解 | #配置文件恢复#
while True: try: command = input().split(' ') dict_command = { 'reset': 'reset what', 'reset board': 'boar...
2023-10-05
0
328
首页
上一页
1
2
3
4
5
下一页
末页