首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
搜索
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
牛客64121344号
获赞
0
粉丝
0
关注
0
看过 TA
8
IP属地:北京
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑牛客64121344号吗?
发布(12)
评论
刷题
收藏
牛客64121344号
关注TA,不错过内容更新
关注
03-21 19:31
a完签到题溜了
美团笔试
0
点赞
评论
收藏
分享
2025-09-20 10:20
题解 | 左侧严格小于计数
n = int(input()) a = list(map(int,input().split())) b=[] for i in range(n): cnt = 0 if i == 0: b.append(0) continue else: for j in range(i): if a[j] < a[i]: cnt+=1 continue else: continue b.append(cnt) for i in b: print(i,end = ' ')
0
点赞
评论
收藏
分享
2025-09-17 22:27
题解 | 最大的差
n = int(input()) a = list(map(int,input().split())) print(max(a)-min(a))
0
点赞
评论
收藏
分享
2025-09-17 22:23
题解 | 牛牛学数列2
n = int(input()) print(sum(1/i for i in range(1,n+1)))
0
点赞
评论
收藏
分享
2025-09-16 19:46
题解 | 平方根
import math as m a = int(input()) print(f'{m.floor(m.sqrt(a))}')
0
点赞
评论
收藏
分享
2025-06-17 11:16
题解 | 查询培训指定课程的员工信息
select staff_id,staff_name from staff_tb where staff_id in( select staff_id from cultivate_tb where course like '%course3%' )
0
点赞
评论
收藏
分享
2025-06-17 11:02
题解 | 统计所有课程参加培训人次
select sum(cnt) staff_nums from( select (case when course is null then 0 else length(course)- LENGTH(REPLACE(course, ',', '')) + 1 end) as cnt from cultivate_tb) as t
0
点赞
评论
收藏
分享
2025-06-17 10:39
题解 | 查询连续入住多晚的客户信息?
select t1.user_id,t1.room_id,g.room_type,t1.days from( select *, datediff(checkout_time,checkin_time) as days from checkin_tb ) as t1 left join guestroom_tb g on t1.room_id = g.room_id where t1.days>1 order by t1.days asc,t1.room_id asc,t1.user_id desc
0
点赞
评论
收藏
分享
2025-06-17 10:29
题解 | 获取指定客户每月的消费额
select date_format(t.t_time,'%Y-%m') as time,sum(t.t_amount) as total from trade t inner join customer c on t.t_cus = c.c_id where year(t.t_time) = '2023' and c.c_name = 'Tom' and t.t_type = 1 group by time order by time asc
0
点赞
评论
收藏
分享
2025-06-17 00:54
题解 | 分析客户逾期情况
select pay_ability,concat(round((sum(case when overdue_days >0 then 1 else 0 end)/count(case when overdue_days >0 then 1 else 0 end))*100,1),'%') as overdue_ratio from loan_tb l join customer_tb c on l.customer_id = c.customer_id group by pay_ability order by overdue_ratio desc
0
点赞
评论
收藏
分享
2025-06-17 00:42
题解 | 最长连续登录天数
select user_id,max(cnt) as max_consec_days from( select user_id,date_gap,count(date_gap) as cnt from( select user_id,date_sub(fdate,interval ranked day) as date_gap from( select *,row_number()over(partition by user_id order by fdate asc) ranked from tb_dau where fdate between '2023-01-01' and '2023-...
0
点赞
评论
收藏
分享
2025-06-16 23:38
题解 | 每个月Top3的周杰伦歌曲
select month,ranking,song_name,play_pv from ( select month,row_number()over(partition by month order by play_pv desc,song_id asc) ranking,song_name,play_pv from( select month(p.fdate) as month,s.song_name,p.song_id,count(p.song_id) as play_pv from play_log p left join song_info s on p.song_id = s.so...
0
点赞
评论
收藏
分享
1
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客网在线编程
牛客网题解
牛客企业服务