牛客155969019号
牛客155969019号
全部文章
分类
题解(28)
归档
标签
去牛客网
登录
/
注册
牛客155969019号的博客
全部文章
(共28篇)
题解 | #判断两个IP是否属于同一子网#
# 判断ip合法性 def hefaip(list): for i in list: if int(i) < 0 or int(i) > 255: return False return True #判断掩码合法性 def hefa...
Python3
2021-10-15
0
422
题解 | #字符串加密#
big = [chr(i) for i in range(65,91)]#所有大写字母 small = [chr(i) for i in range(97,123)]#所有小写字母 while True: try: key = input() str = ...
Python3
2021-10-15
0
477
题解 | #蛇形矩阵#
while True: try: N = int(input()) except: break else: a = 0 list = [0,] for x in range(1,N+1): ...
Python3
2021-10-15
0
378
题解 | #图片整理#
while True: try: str = input() except: break else: list = [] for i in str: list.append(int(ord...
Python3
2021-10-15
1
664
题解 | #整数与IP地址间的转换#
while True: try: ip = input() num = input() except: break else: # ip to num ip_list = ip.split('.'...
Python3
2021-10-15
30
4002
题解 | #密码截取#
str = input() n = len(str) list = [] for i in range(0,n-1): for j in range(1,n): if str[j] == str[i] and str[i+1:j] == str[j-1:i:-1]: ...
Python3
2021-10-15
117
10389
题解 | #字符串合并处理#
while True: try: str = ''.join(input().split()) except: break else: # 第二步奇偶排列 oushu = [str[x] for x in ran...
Python3
2021-10-15
14
1642
题解 | #字符串加解密#
big = [chr(i) for i in range(65,91)] #大写字母列表 small = [chr(i) for i in range(97,123)] #小写字母列表 num = [chr(i) for i in range(48,58)] #数字列表 def change(s...
Python3
2021-10-15
1
505
首页
上一页
1
2
3
下一页
末页