首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
课程
专栏·文章
竞赛
搜索
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
在线笔面试、雇主品牌宣传
登录
/
注册
爱吃鱼的驼瑞驰快支棱起来
获赞
1
粉丝
1
关注
11
看过 TA
16
门头沟学院
2024
C++
IP属地:重庆
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑爱吃鱼的驼瑞驰快支棱起来吗?
发布(14)
刷题
爱吃鱼的驼瑞驰快支棱起来
04-05 23:13
门头沟学院 电子信息类
题解 | #迷宫问题# [男儿须读五车书]
def dfs(i,j): dx=[0,0,-1,1] dy=[-1,1,0,0] if i==m-1 and j==n-1: for pos in route: print('('+str(pos[0])+','+str(pos[1])+')') for k in range(4): x=i+dx[k] y=j+dy[k] if x>=0 and x<m and y>=0 and y<n and map1[x][y]==0: ...
0
点赞
评论
收藏
转发
爱吃鱼的驼瑞驰快支棱起来
2023-07-27 18:13
门头沟学院 电子信息类
题解 | #称砝码#
# 获得砝码种数n # 获得砝码重量weigh # 获得每个砝码个数nums=[] # 获得砝码乘个数的重量 # 初始化set(),temp,加入砝码i,遍历 n=int(input()) weight=list(map(int,input().split())) nums=list(map(int,input().split())) famas=[] path={0,} for i in range(n): for j in range(nums[i]): famas.append(weight[i]) # 记录出现次数 for i in famas:...
0
点赞
评论
收藏
转发
爱吃鱼的驼瑞驰快支棱起来
2023-07-24 16:34
门头沟学院 电子信息类
题解 | #求小球落地5次后所经历的路程和第5次反弹的高度#
n=float(input()) cur=n sum=n res=[] for i in range(5): cur=cur/2 sum+=cur*2 res.append(cur) print(sum-res[-1]*2) print(res[-1]) 先计算每一次弹起到落地小球运动距离,是cur*2。最后一次是落地只有cur不会弹起。但是算的时候是算了弹起部分。因此要减去cur。
0
点赞
评论
收藏
转发
爱吃鱼的驼瑞驰快支棱起来
2023-07-24 16:04
门头沟学院 电子信息类
题解 | #字符串加密#
res= [chr(i) for i in range(ord('a'), ord('z')+1)] mystr=input() myset=set(list(mystr)) # 使用dic记录dic[value]=sceret,value是res中数字,secret是加密后数字, # 首先记录密码中字母,去重。获得差集rest是26 个字母中除去密码中字母。遍历rest获得dic。处理输入数字 dic={} ind=0 order=set() for i in mystr: if i not in order: dic[res[ind]]=i ind+...
0
点赞
评论
收藏
转发
爱吃鱼的驼瑞驰快支棱起来
2023-07-24 14:39
门头沟学院 电子信息类
题解 | #整数与IP地址间的转换#
# rjust('0'.32) myip=list(map(int,input().split('.'))) # print(myip) res1="" for i in myip: # print(bin(i)) res1+=bin(i)[2:].rjust(8,'0') print(int(res1,2)) nxtip=int(input()) nxtbin=bin(nxtip)[2:].rjust(32,'0') # print(nxtbin) ans=[] ans.append(int(nxtbin[0:8],2)) ans.append(int(n...
0
点赞
评论
收藏
转发
爱吃鱼的驼瑞驰快支棱起来
2023-07-24 14:13
门头沟学院 电子信息类
题解 | #密码截取#
def longest(left,right,myster): while left>=0 and right<len(myster) and myster[left]==myster[right]: left-=1 right+=1 return myster[left+1:right] mystr=input() res="" for i in range(len(mystr)): cnt1=longest(i,i,mystr) cnt2=longest(i,i+1,mystr) cur...
0
点赞
评论
收藏
转发
爱吃鱼的驼瑞驰快支棱起来
2023-07-22 18:38
门头沟学院 电子信息类
题解 | #字符串合并处理#
def change(x): res="0123456789abcdefABCDEF" if x in res: temp=bin(int(x,16))[2:].rjust(4,'0')[::-1] # 获得16进制数 return hex(int(temp,2))[2:].upper() else: return x strs=input().replace(' ','') n=len(strs) odd="" even="" for i in range(n)...
0
点赞
评论
收藏
转发
爱吃鱼的驼瑞驰快支棱起来
2023-07-20 22:22
门头沟学院 电子信息类
题解 | #字符串加解密#
encodedic={'9':'0','Z':'a','z':'A'} decodedic={'0':'9','a':'Z','A':'z'} enstrs=input() enans="" for i in enstrs: if i in encodedic: enans+=encodedic[i] elif i.isdigit(): enans+=chr(ord(i)+1) elif ord('a')<=ord(i)<=ord('z'): temp=ord(i.upper())+1 ...
0
点赞
评论
收藏
转发
爱吃鱼的驼瑞驰快支棱起来
2023-07-20 17:11
门头沟学院 电子信息类
题解 | #删除字符串中出现次数最少的字符#
from collections import defaultdict strs=input() dic=defaultdict(int) for i in strs: dic[i]+=1 dicso=sorted(dic.items(),key=lambda x: x[1]) # print(dicso) min=dicso[0][1] res=set() ans="" # 记录需要被删除的元素 for re in dicso: if re[1]==min: res.add(re[0]) if re[1]>min: ...
0
点赞
评论
收藏
转发
爱吃鱼的驼瑞驰快支棱起来
2023-04-26 16:40
门头沟学院 电子信息类
只会python真的就不能找到互联网大厂的软开,后端吗?纯小白问一下
0
点赞
评论
收藏
转发
爱吃鱼的驼瑞驰快支棱起来
2022-11-17 22:20
门头沟学院 电子信息类
题解 | #反转链表#
uuuu
0
点赞
评论
收藏
转发
爱吃鱼的驼瑞驰快支棱起来
2022-11-15 21:32
门头沟学院 电子信息类
题解 | #表示数值的字符串#
怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!怎么写屎山!...
0
点赞
评论
收藏
转发
爱吃鱼的驼瑞驰快支棱起来
2022-11-11 16:49
门头沟学院 电子信息类
题解 | #重建二叉树#
注意递归顺序, 还有这里编辑器比likou好。#!
0
点赞
评论
收藏
转发
爱吃鱼的驼瑞驰快支棱起来
2022-11-05 21:59
门头沟学院 电子信息类
题解 | #反转链表#
无语leetcodee上面运行不出来,这里直接出来。。。。。。。。。。。。。。。。。。。。。。。。
0
点赞
评论
收藏
转发
1
工具箱
TA的圈子
暂未加入圈子
TA的圈子
TA的笔记
暂无笔记
TA的笔记
登录
0
天
已登录
0
天
连续登录
0
人
今日访客
牛客网
牛客企业服务