首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
一诺_
获赞
0
粉丝
0
关注
7
看过 TA
1
西华大学
2021
Java
IP属地:四川
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑一诺_吗?
发布(7)
评论
刷题
收藏
一诺_
关注TA,不错过内容更新
关注
2024-06-12 00:13
西华大学 Java
题解 | #字符串分隔#
import string import sys string_1=input() if len(string_1)<=8: while len(string_1)<8: string_1=string_1+'0' print(string_1) elif int(len(string_1)/8)>0: i=0 while i<int(len(string_1)/8): print(string_1[8*i:8*(i+1)]) i+=1 if len(string_1)%8!=0: print(string_1[-(len(string_1)%8):]+''.join(...
0
点赞
评论
收藏
分享
2024-04-03 16:35
西华大学 Java
题解 | #截取出年龄#
select substring_index(substring_index(profile,',',3),',',-1) age,count(*)number from user_submit group by age 有个疑问select中 count(*) 如果写成 count(age)会报错 为什么?
0
点赞
评论
收藏
分享
2024-03-20 11:02
西华大学 Java
题解 | #查找山东大学或者性别为男生的信息#
select device_id,gender,age,gpa from user_profile where university='山东大学' union all select device_id,gender,age,gpa from user_profile where gender='male'
0
点赞
评论
收藏
分享
2024-03-20 10:47
西华大学 Java
题解 | #统计每个用户的平均刷题数#
select university,difficult_level,count(qpd.question_id)/count(distinct qpd.device_id) avg_cnt from question_practice_detail qpd join user_profile up on qpd.device_id=up.device_id join question_detail qd on qpd.question_id=qd.question_id where university='山东大学' group by university,difficult_level
0
点赞
评论
收藏
分享
2024-03-17 16:32
西华大学 Java
题解 | #浙大不同难度题目的正确率#
select difficult_level,sum(if(result='right',1,0))/count(q.question_id)correct_rate from question_practice_detail q join user_profile u on u.device_id=q.device_id join question_detail qd on q.question_id=qd.question_id where university='浙江大学' group by qd.difficult_level order by correct_rate
0
点赞
评论
收藏
分享
2024-03-17 15:43
西华大学 Java
题解 | #统计复旦用户8月练题情况#
这题花时间在了两个知识点上如下: 1、直接用了count(result='right')来计数正确回答个数 这是错误的 应该用sum(if(result='right',1,0) 2、month(date)条件限制我放在了where后面,导致筛选出来的数据少了8月份没有做题的学生数据, month(date)应该放在 left join on后面 在使用left join时,on 和 where 条件的区别如下: on条件是在生成临时表时使用的条件,它不管on中的条件是否为真,都会返回左边表中的记录。 where条件是在临时表生成好后,再对临时表进行过滤的条件。这时已经没有left join的...
0
点赞
评论
收藏
分享
2024-03-09 21:23
西华大学 Java
题解 | #找出每个学校GPA最低的同学#
select u1.device_id,u1.university,u1.gpa from user_profile u1 where gpa = ( select min(gpa) from user_profile u2 where u1.university=u2.university) order by university
0
点赞
评论
收藏
分享
1
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客企业服务