牛客229068068号
牛客229068068号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客229068068号的博客
全部文章
(共49篇)
题解 | 小红的正整数构造
x,y,target = map(int,input().split()) count = 0 for i in range(x,y+1): if(i%target==0): count = 1 print(i) break else:...
2025-07-25
0
20
题解 | 小红的正整数构造
x,y,target = map(int,input().split()) count = 0 for i in range(x,y+1): if(i%target==0): count = 1 print(i) break else:...
2025-07-25
0
34
题解 | 小红喜欢1
num_list = list(map(int,input().split())) for i in range(0,5): if(num_list[i]==1): print(i+1) else: continue
2025-07-24
0
32
题解 | 牛牛逆序输出
num1_list = list(map(int,input())) num1_list.reverse() for i in num1_list: print(i,end='')
2025-07-24
0
37
题解 | 牛牛的排列数
def Pulscoross(n): count = 1 for i in range(1, n+1): sum = i*count count=sum return count def Twocross(x , y): to...
2025-07-23
0
26
题解 | 牛牛的digit
num1, num2 =map(int, input().split()) list1 = list(map(str,str(num1))) len_list = len(list1) for i in range(len_list-num2,len_list): i = int(list1...
2025-07-23
0
32
题解 | 牛牛的西格玛
def Plus_ADD(n): count = 0 for i in range(1,n+1): sum = i+count count = sum return count input_number = int(input()) prin...
2025-07-22
0
28
题解 | 牛牛的10类人
len_in = int(input()) list1 = list(map(int, input().split())) # 整数转二进制数 def func(x): res = '' while x : b = int(x)%2 res = str...
2025-07-20
0
39
题解 | 牛牛的替换
list_exp = list(map(str, input().split())) list1= list(input()) n =len(list1) for i in range(0,n): if(list1[i]==list_exp[1]): list1[i]=lis...
2025-07-19
0
33
题解 | 记数问题
num1,num2 = input().split() count = 0 list1 = [] for i in range(1,int(num1)+1): list1.append(i) # 把列表中的每个数字转换成字符串,然后用空字符串连接成一个整体字符串。比如12345678910...
2025-07-09
0
55
首页
上一页
1
2
3
4
5
下一页
末页