〓Fly〓
〓Fly〓
全部文章
分类
题解(36)
归档
标签
去牛客网
登录
/
注册
〓Fly〓的博客
全部文章
(共33篇)
题解 | #迷宫问题#
def dfs(x,y): w=lambda x,y:(x-1,y) s=lambda x,y:(x+1,y) a=lambda x,y:(x,y-1) d=lambda x,y:(x,y+1) if x==m-1 and y==n-1: fo...
Python3
2022-04-24
0
194
题解 | #称砝码#
while True: try: n = int(input()) m = list(map(int, input().split())) x = list(map(int, input().split())) l1 = [] ...
Python3
2022-04-23
0
183
题解 | #求小球落地5次后所经历的路程和第5次反弹的高度#
# while True: # try: # n=int(input()) # s=-n # for i in range(5): # s+=n*2 # n/=2 # print(...
Python3
2022-04-23
1
304
题解 | #字符串加密#
while True: try: key=input() n=input() s=[chr(ord('a')+i) for i in range(26)] #s=('a''b''c''d''e''f''g''h''i''j''k...
Python3
2022-04-23
0
148
题解 | #整数与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
首页
上一页
1
2
3
4
下一页
末页