程序员Realeo
程序员Realeo
全部文章
分类
归档
标签
去牛客网
登录
/
注册
程序员Realeo的博客
全部文章
(共161篇)
题解 | #获取指定客户每月的消费额#
select date_format (t.t_time,"%Y-%m") as time, sum(t.t_amount) as total from trade t, customer c where t.t_cus = c.c_id ...
2024-09-25
0
101
题解 | #北京大学或练题数大于2的学生ID#
select distinct c.device_id from (select a.device_id from user_profile a, question_practice_detail b where a.device_id = b.device_id g...
2024-07-30
0
151
题解 | #所有用户对高难度题目的刷题数#
select a.device_id, count(if (c.difficult_level = 'hard', 1, null)) as question_cnt from user_profile a left join question_practice_detail...
2024-07-30
0
138
题解 | #平均绩点大于3.6且总人数大于2#
select university, count(device_id) as total_cnt, count(if (gender = 'male', 1, null)) as male_cnt, count(if (gender = 'female', 1, null))...
2024-07-30
0
159
题解 | #快速幂#
import java.util.Scanner; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { Scanner in =...
2024-02-23
0
352
题解 | #相差不超过k的最多数#
import java.util.*; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { Scanner in = new S...
2024-02-23
0
298
题解 | #验证IP地址#
import java.util.*; public class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 验证IP地址 * @param IP string字符串 一个IP...
2024-02-19
0
339
题解 | #买卖股票的最好时机(三)#
import java.util.*; public class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 两次交易所能获得的最大收益 * @param prices int...
2024-02-19
0
257
题解 | #买卖股票的最好时机(二)#
import java.util.*; public class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 计算最大收益 * @param prices int整型一维数组 ...
2024-02-19
0
304
题解 | #买卖股票的最好时机(一)#
import java.util.*; public class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param prices int整型一维数组 ...
2024-02-19
0
257
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页