〓Fly〓
〓Fly〓
全部文章
分类
题解(36)
归档
标签
去牛客网
登录
/
注册
〓Fly〓的博客
全部文章
(共69篇)
题解 | #整数与IP地址间的转换#
n1=list(map(int,input().split('.'))) n2=int(input()) s1='' s2=[] for i in n1: s1+=bin(i)[2:].rjust(8,'0') print(int(s1,2)) for j in range(4): ...
Python3
2022-04-23
0
161
题解 | #密码截取#
while True: try: s=input() l=[] for i in range(len(s)-1): for j in range(1,len(s)): if s[i]==s...
Python3
2022-04-22
5
475
题解 | #字符串加解密#
def check(a,b): L1 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" L2 = "BCDEFGHIJKLMNOPQRSTUVWXYZAbcdefghijklmnopqrstuvwxy...
Python3
2022-04-22
1
387
题解 | #查找兄弟单词#
while True: try: s=input().split() l=[] for i in s[1:-2][:int(s[0])]: if i != s[-2] and sorted(i) == sorted(s[...
Python3
2022-04-22
0
253
题解 | #字符串排序#
while True: try: s = input() s1 = "" for i in s: if i.isalpha(): s1 += i l = sorted(s1...
Python3
2022-04-20
1
672
题解 | #合唱队#
import bisect def f(l): lis=[1]*len(l) a=[l[0]] for i in range(1,len(l)): if l[i]>a[-1]: a.append(l[i]) ...
Python3
2022-04-20
0
333
题解 | #密码验证合格程序#
def f(n): if len(n)<=8: return False s=n.replace(' ','').replace('\n','') a=[0,0,0,0] for i in s: if i.isupper(): ...
Python3
2022-04-19
7
918
题解 | #坐标移动#
# s = input().split(';') # x,y = 0,0 # for i in s: # try: # if 2<=len(i)<=3 and i[0] in ['A', 'D', 'W', 'S'] and 0<=int(i[1:])<...
Python3
2022-04-15
1
356
题解 | #记负均正#
while True: try: n=int(input()) s=list(map(int,input().split())) a,b=[],[] c=0 for i in s[:n]: ...
Python3
2022-04-11
0
195
题解 | #记票统计#
while True: try: n1=int(input()) s1=input().split() n2=int(input()) s2=input().split() d={} for i ...
Python3
2022-04-10
0
145
首页
上一页
1
2
3
4
5
6
7
下一页
末页