星图史话
星图史话
全部文章
分类
归档
标签
去牛客网
登录
/
注册
星图史话的博客
全部文章
(共10篇)
题解 | 【模板】二维前缀和
//***只要你 目光是瞄准月亮 迷失过 又有何妨***// #include<bits/stdc++.h> using namespace std; using ll=long long; const int N=1e3+10; ll a[N][N]; int n,m,q; int l...
2025-11-06
1
8
题解 | 组队
//***只要你 目光是瞄准月亮 迷失过 又有何妨***// //滑动窗口 双指针的思想 #include<bits/stdc++.h> using namespace std; using ll=long long; const int N=2e5+10; ll a[N]; int...
2025-11-04
1
9
题解 | 小红的魔法药剂
//***只要你 目光是瞄准月亮 迷失过 又有何妨***// #include<bits/stdc++.h> using namespace std; using ll=long long; int n; const int N=1e5; ll fac[N]; int a[N]; int...
2025-10-24
2
17
题解 | 仰望水面的歪
//***只要你 目光是瞄准月亮 迷失过 又有何妨***// #include<bits/stdc++.h> using namespace std; using ll=long long; ll x,y,z; ll n,h; ll X,Y,Z; ll gcd(ll a,ll b) { ...
2025-10-22
1
18
题解 | 喜欢切数组的红
//***只要你 目光是瞄准月亮 迷失过 又有何妨***// #include<bits/stdc++.h> using namespace std; const int N=2e5+10; int n; int a[N]; int pre[N]; int res[N]; bool fl...
2025-10-12
1
14
题解 | Rinne Loves Study
//***只要你 目光是瞄准月亮 迷失过 又有何妨***// #include<bits/stdc++.h> using namespace std; int n,m,t; int op,idx; void solve() { cin>>n>>m>&...
2025-10-07
1
25
题解 | 提取博客URL中的用户名
select device_id,substring_index(blog_url,'/',-1) user_name from user_submit
2025-09-05
1
20
题解 | 统计每种性别的人数
select substring_index(profile,',',-1) gender,count(*)nubmer from user_submit group by gender substring_index(str,delim,count)是SQL的一个字符串函数,用于根据指定的分隔符从...
2025-09-05
1
20
题解 | 找出每个学校GPA最低的同学
select device_id,university,gpa from ( select *, row_number() over (partition by university order by gpa) rd from user_profile ) as minm w...
2025-09-02
1
15
题解 | 计算每日累计利润
select profit_id,profit_date,profit, sum(profit) over(order by profit_date)cumulative_profit from daily_profits
2025-09-02
1
25