lemonyyds
lemonyyds
全部文章
分类
归档
标签
去牛客网
登录
/
注册
lemonyyds的博客
全部文章
(共5篇)
题解 | 显生之宙
#include <bits/stdc++.h> using namespace std; #define int long long signed main(){ ios::sync_with_stdio(0); int T;cin>>T; whil...
2026-03-13
0
6
题解 | 小苯的蓄水池(hard)
并查集维护每个水池的左右边界+前缀和 #include<bits/stdc++.h> using namespace std; using ld=long double; using pii=pair<int,int>; #define endl "\n"...
2026-03-09
0
13
题解 | 连分数
#include<bits/stdc++.h> #define endl '\n' using namespace std; signed main() { ios::sync_with_stdio(0); cin.tie(0); int T=1;cin>&...
2026-03-08
0
13
题解 | Rinne Loves Edges
#include <bits/stdc++.h> using namespace std; using ll=long long; using pil=pair<int,long long>; int main() { ios::sync_with_stdio(0);...
2026-03-07
0
18
题解 | 月月查华华的手机
蒟蒻的我只想得到二分查找每一个字母,但好像没人发使用upper_bound()的版本,遂发出()思路:对于华华的昵称字符串A,我们可以预处理每个字母出现的位置,即用一个二维数组a[26][],其中a[i]按升序存储某个字母在字符串A中出现的所有位置对于每个推荐好友的昵称字符串B,我们按顺序遍历B的每...
2025-12-15
0
43