〓Fly〓
〓Fly〓
全部文章
分类
题解(36)
归档
标签
去牛客网
登录
/
注册
〓Fly〓的博客
全部文章
(共69篇)
题解 | #高精度整数加法#
while True: try: n1 = input() n2 = input() print(int(n1)+int(n2)) except: break
2022-10-30
0
84
题解 | #挑7#
while True: try: n=int(input()) if n>30000 or n<=0: break else: c=0 for i in ran...
2022-10-30
0
132
题解 | #计算字符串的编辑距离#
while True: try: str1 = input() str2 = input() m = len(str1) n = len(str2) dp = [[1 for i in rang...
2022-10-30
0
225
题解 | #四则运算#
while True: try: n=input() n=n.replace('{','(') n=n.replace('}',')') n=n.replace('[','(') n=n.replace(']',...
2022-10-30
0
110
题解 | #从单向链表中删除指定值的节点#
while True: try: n=input().split() l=[n[1]] for i in range(2,len(n)-1,2): l.insert(l.index(n[i+1])+1,n[i]) ...
2022-10-30
0
102
题解 | #名字的漂亮度#
while True: try: n=int(input()) for i in range(n): s=input() # 字典放名字中每种字母对应出现的次数 dic={} ...
2022-10-30
0
170
题解 | #迷宫问题#
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
182
题解 | #求小球落地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
首页
上一页
1
2
3
4
5
6
7
下一页
末页