牛客953087208号
牛客953087208号
全部文章
分类
题解(18)
归档
标签
去牛客网
登录
/
注册
牛客953087208号的博客
全部文章
(共11篇)
题解 | #删除字符串中出现次数最少的字符#
while True: try: dic ={} s = input() px = '' for i in s: if i not in dic.keys(): dic[i...
Python3
2021-12-19
0
312
题解 | #删除字符串中出现次数最少的字符#
while True: try: dic ={} s = input() px = '' ...
Python3
2021-12-19
0
304
题解 | #汽水瓶#
def water(n): if n < 2: return 0 elif n == 2: return 1 &...
Python3
2021-12-19
0
361
题解 | #简单密码#
while True: try: pw = input() new_pw = '' z = ['abc'...
Python3
2021-12-19
26
2036
题解 | #求int型正整数在内存中存储时1的个数#
s = int(input()) w = list(bin(s)) a = 0 for i in w: if i == '1': a += 1 print(a)
Python3
2021-12-01
1
558
题解 | #提取不重复的整数#
w = [] s = list((input())) q = s[::-1] for i in q: if i not in w: w.append(i) print(''.join(w))
Python3
2021-12-01
6
1065
题解 | #合并表记录#
s = int(input()) dic = {} a = 1 while a <= s: k = [int(i) for i in input().split()] if k[0] not in dic.keys(): &...
Python3
2021-12-01
0
356
题解 | #进制转换#
while True: try: s = input() print(int(s, 16)) except: &nbs...
Python3
2021-11-30
5
762
题解 | #字符串排序#
while True: try: s = int(input()) n = [] for i in ra...
Python3
2021-11-30
0
335
题解 | #字符串排序#
s = int(input()) n = [] for i in range(int(s)): if i <= int(s): n.append(input()) m = '\n'.join(sorted(n)...
Python3
2021-11-30
0
292
首页
上一页
1
2
下一页
末页