咻132
咻132
全部文章
分类
题解(7)
归档
标签
去牛客网
登录
/
注册
咻132的博客
全部文章
(共4篇)
题解 | #【入门班】借教室#
#include<bits/stdc++.h> using namespace std; int n,m; const int N=1e6+9; int a[N],c[N]; struct dd{ int d,s,t; }p[N]; bool ck(int x){//x为订单顺...
C++
二分查找
前缀和
2025-07-03
1
10
题解 | #[CQOI2010]扑克牌#
#include<iostream> #include<algorithm> #include<cmath> using namespace std; int n,m; int a[60]; bool ck(int x){//x为组成的套数 int cn...
C++
二分查找
2025-07-03
0
11
题解 | #晾衣服#
#include<iostream> #include<algorithm> #include<cmath> #define int long long using namespace std; int n,k; const int N=1e5+9; int a...
C++
二分查找
2025-07-03
0
11
使用lower_bound()函数
#include<iostream> #include<algorithm> using namespace std; const int N=1e5+9; int n,a[N],q; int main(){ cin>>n; for(int i=...
C++
二分查找
2025-07-02
1
15