牛客892888367号
牛客892888367号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客892888367号的博客
全部文章
(共18篇)
题解 | #下厨房#
import sys def count_food(str1): uni_food = set() for i in str1: uni_food.add(i) return len(uni_food) input_data = sys.stdin....
2024-06-20
0
108
题解 | #删除字符串中出现次数最少的字符#
import sys def find_minchar(s): char_s={} char_min =0 for i in s: if i in char_s: char_s[i] += 1 else: ...
2024-06-11
1
135
题解 | #汽水瓶#
import sys def max_drink(n): max = 0 while(n >= 3): new_drink = n // 3 max += new_drink n = n % 3 + new_drink ...
2024-06-10
0
111
题解 | #简单密码#
import sys def change_password(password): char_to_digit = { '1':'1','0':'0', 'a':'2','b':'2','c':'2', 'd':'3','e':'3','f'...
2024-06-10
0
104
题解 | #密码验证合格程序#
import sys def check_password(password): if len(password) <= 8: return "NG" bool_s = [False]*4 for char in password:...
2024-06-09
0
113
题解 | #坐标移动#
import sys def zuobiao(input_str): input_str = input_str.split(";") x,y=0,0 for i in input_str: if len(i) < 2 or len...
2024-06-08
0
105
题解 | #坐标移动#
import sys def zuobiao(input_str): input_str = input_str.split(";") x,y=0,0 for i in input_str: if len(i) < 2 or len...
2024-06-06
0
125
题解 | #求int型正整数在内存中存储时1的个数#
import sys input_data = sys.stdin.read().strip() n = int(input_data) bin_num = bin(n)[2:] restult = bin_num.count("1") print(restult)
2024-06-06
0
110
题解 | #字符串排序#
import sys input_data = sys.stdin.read().strip().splitlines() n = int(input_data[0]) str = input_data[1:n+1] str.sort() for i in str: print(i)
2024-06-06
0
102
题解 | #句子逆序#
import sys input_data = sys.stdin.read().strip().split(" ") lines = input_data lines_re = lines[::-1] for i in lines_re: print(i,end...
2024-06-06
0
129
首页
上一页
1
2
下一页
末页