Qadccccc
Qadccccc
全部文章
题解
归档
标签
去牛客网
登录
/
注册
Qadccccc的博客
全部文章
/ 题解
(共12篇)
题解 | #游游的整数切割# 整数拆分 数学
解题思路 要解决这个问题,首先需要明确拆分规则和和为偶数的条件,再逐一枚举所有可能的拆分方式并验证。 一、核心定义与规则 拆分定义: 将数字103(三位数)在数位之间插入分割点,分成两个非空数字串(允许前导 0,即拆分后的部分可以 0 开头,如0和103)。三位数有且仅有 2 个拆分位置: 位置 ...
数学
2025-09-21
0
14
题解 SQL17 平均活跃天数和月活人数
-- 交卷行为 submit_time 不为空 -- 每个月 按照 month(date) 分组 -- 选出 : 2021 活跃用户where submirt_time is not null andf year(submit_time)='2021' -- 获取用户活跃的日期去重 ...
Mysql
2022-02-14
0
468
题解 | #浙大不同难度题目的正确率#
SELECT rt.tag,rt.difficulty, ROUND((sum(score) -max(score) -min(score))/ (count(score)-2),1) as clip_avg_score from exam_record er join e...
Mysql
2022-02-14
0
322
题解 | #计算25岁以上和以下的用户数量#
select '25岁以下' as age_cut , count(device_id) as number from user_profile where age <25 OR age is null union all select '25岁及以上' as ...
Mysql
2022-02-06
0
447
题解 | #查找山东大学或者性别为男生的信息#
SELECT device_id ,gender,age ,gpa from user_profile where university ='山东大学' UNION all SELECT device_id ,gender,age ,gpa from user_profile where...
Mysql
2022-02-06
0
278
题解 | #统计每个学校的答过题的用户的平均答题数#
select u.university , count(q.question_id)/count(DISTINCT q.device_id) from question_practice_detail q inner join user_profile u where q.devi...
Mysql
2022-02-06
0
348
题解 | #最小#
-- select job|avg(1.0*score) from grade group by job ; select job , round((1.0*sum(score)/count(id) ),3) as a from grade group by job ord...
Mysql
2022-02-06
1
371
题解 | #SQL5# 左连接
select e.last_name,e.first_name,d.dept_no from employees e left join dept_emp d on e.emp_no =d.emp_no
Mysql
2021-10-06
1
382
题解 SQ3
-- select job|avg(1.0*score) from grade group by job ; select job , round((1.0*sum(score)/count(id) ),3) as a from grade group by job ord...
Mysql
2021-10-06
0
406
题解 | #考试分数(一)#
-- select job|avg(1.0*score) from grade group by job ; select job , round((1.0*sum(score)/count(id) ),3) as a from grade group by job ord...
Mysql
2021-10-02
0
413
首页
上一页
1
2
下一页
末页