首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
牛客524925895号
获赞
1
粉丝
0
关注
5
看过 TA
57
男
门头沟学院
2025
算法工程师
IP属地:上海
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑牛客524925895号吗?
发布(36)
评论
刷题
收藏
牛客524925895号
关注TA,不错过内容更新
关注
2024-04-14 13:31
门头沟学院 算法工程师
题解 | #图片整理#
print(''.join(sorted(input().strip())))
0
点赞
评论
收藏
分享
2024-04-12 17:39
门头沟学院 算法工程师
题解 | #Redraiment的走法#
#动态规划求解 #我的目前的子序列是a = [...] #d[i]表示以i结尾的最长子序列 #状态转移方程 #if a[j] < a[i] j 1<j<i # d[i] = max(d[j]+1,d[i]) n = int(input()) nums = list(map(int,input().strip().split())) dp = [1]*len(nums) for i in range(n): for j in range(i): if nums[j] < nums[i]: dp[i] = max(dp...
0
点赞
评论
收藏
分享
2024-04-01 22:10
门头沟学院 算法工程师
题解 | #输入n个整数,输出其中最小的k个#
tmp = list(map(int,input().strip().split())) n =tmp[0] k = tmp[1] tmp2 = sorted(list(map(int,input().strip().split()))) re=map(str,tmp2[:k]) print(' '.join(re))
0
点赞
评论
收藏
分享
2024-04-01 21:42
门头沟学院 算法工程师
题解 | #求小球落地5次后所经历的路程和第5次反弹的高度#
while True: try: n = int(input()) print(n*2.875) print(n*0.03125) except: break
0
点赞
评论
收藏
分享
2024-04-01 21:38
门头沟学院 算法工程师
题解 | #查找兄弟单词#
a = input().split() n1 = int(a[0]) n2 = int(a[-1]) tar = a[-2] tmp = a[1:-2] re = [] for i in a: if i==tar: continue elif sorted(i) == sorted(tar): re.append(i) re = sorted(re) nn = len(re) print(nn) if len(re) >= n2: print(re[n2-1])
0
点赞
评论
收藏
分享
2024-04-01 21:37
门头沟学院 算法工程师
题解 | #表示数字#
strings = input().strip() re = '' flag = 0 for i in strings: if i.isdigit(): flag_new= 1 if flag-flag_new: re += '*' re += i flag = flag_new else: flag_new = 0 if flag-flag_new: re += '*' re += i flag = ...
0
点赞
评论
收藏
分享
1
2
3
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客企业服务