程序员Realeo
程序员Realeo
全部文章
分类
归档
标签
去牛客网
登录
/
注册
程序员Realeo的博客
全部文章
(共161篇)
题解 | #判断是元音还是辅音#
import java.util.Scanner; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { Scanner in =...
2023-05-23
0
193
题解 | #小乐乐改数字#
import java.util.Scanner; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { Scanner in =...
2023-05-23
0
211
题解 | #缩短二进制#
import java.util.Scanner; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { System.out.p...
2023-05-19
0
216
题解 | #成绩输入输出#
import java.util.Scanner; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { Scanner in =...
2023-05-19
0
222
题解 | #考试分数(三)#
开窗函数很方便,但底层逻辑和自连接类似,因此采用自连接实现。 select g.id, name, g.score from grade g, ( select g1.language_id, g...
2023-05-14
0
190
题解 | #牛客每个人最近的登录日期(五)#
select l.date, round(if((count(distinct n.user_id)) != 0,count(distinct m.user_id)/(count(distinct n.user_id)),0),3) as p from login l ...
2023-05-14
0
212
题解 | #牛客每个人最近的登录日期(四)#
select l.date,count(distinct m.user_id) as new from login l left join (select user_id,min(date) date from login group by user_id) m on l. ...
2023-05-14
0
200
题解 | #对所有员工的薪水排名#
select emp_no,salary, dense_rank() over (order by salary desc) as t_rank from salaries order by salary desc,emp_no
2023-05-11
0
189
题解 | #每份试卷每月作答数和截止当月的作答总数。#
select *, sum(month_cnt) over ( partition by exam_id order by start_month ) from ( sel...
2023-05-10
0
171
题解 | #大小写混乱时的筛选统计#
select low.tag, up.answer_cnt from ( select er.exam_id, tag, count(start_time) as answer_cnt ...
2023-05-10
0
219
首页
上一页
8
9
10
11
12
13
14
15
16
17
下一页
末页