牛客85361504号
牛客85361504号
全部文章
题解
归档
标签
去牛客网
登录
/
注册
牛客85361504号的博客
全部文章
/ 题解
(共5篇)
题解 | #提取不重复的整数#
while True: try: x=list(input()) y=x[::-1] z=[] for i in range(len(y)): if y[i] not in z: ...
Python3
2021-10-11
0
352
题解 | #挑7#
while True: try: x=int(input()) z=list(range(1,x+1)) m=[] if x>30000 or x<=0: break else...
Python3
2021-10-08
5
1142
题解 | #单词倒排#
small=[chr(i) for i in range(97,123)] big=[chr(i) for i in range(65,91)] x=input() for i in x: if i not in small+big: x=x.replace(i," ") y...
Python3
2021-10-07
0
317
题解 | #判断两个IP是否属于同一子网#
while True: try: x=input().split(".") y=input().split(".") z=input().split(".") m=[] n=[] for i in...
Python3
2021-10-07
10
2158
题解 | #数组分组#
def recursion(x,y,z): if len(z)==0: if x==y: return True else: return False else: return recursion(x+int(z[0]),y,z[1:]) or recursion(x,y+int(z[0]),z[1...
Python3
2021-10-04
0
467