chenlan114
chenlan114
全部文章
分类
题解(1)
归档
标签
去牛客网
登录
/
注册
chenlan114的博客
全部文章
(共49篇)
题解 | 小红的数组操作(hard version)
#include<bits/stdc++.h> using namespace std; using ll=long long; // 输入参数:n=数组长度,p=加x的代价,x=每次加的数值,q=减y的代价,y=每次减的数值 ll n,p,x,q,y; /** * 状态结构体:...
2026-02-22
0
2
题解 | 01序列
#include<bits/stdc++.h> using namespace std; using ll=long long; int main(){ ios::sync_with_stdio(0),cin.tie(0),cout.tie(0); ll m; cin...
2026-02-21
0
8
题解 | qcjj寄快递
只要用时间 t 的公式对 k 求导数,一切都会好起来的 #include<bits/stdc++.h> using namespace std; using ll=long long; const ll N=1e5+5; // 定义结构体D,用于存储二维平面上点的横、纵坐标 struct...
2026-02-19
0
9
题解 | 小d和超级泡泡堂
#include<bits/stdc++.h> using namespace std; using ll=long long; const ll N=1005; ll n,m; vector<vector<char>>g(N,vector<char>...
2026-02-18
0
9
题解 | 小红的扫雷游戏
#include<bits/stdc++.h> using namespace std; using ll=long long; using PII=pair<ll,ll>; // 定义8个方向的行/列偏移量(覆盖右、左、下、右下、左下、上、右上、左上) // dx对应行偏...
2026-02-17
0
11
题解 | Bob的蛋糕店
#include<bits/stdc++.h> using namespace std; using ll=long long; int main(){ ios::sync_with_stdio(0),cin.tie(0),cout.tie(0); // 步骤1:输...
2026-02-17
0
11
题解 | 小红升装备
#include<bits/stdc++.h> using namespace std; using ll=long long; struct B{ ll a,p,c,u,l; }; B b[305]; ll dp[305]; int main(){ ios::sync_...
2026-02-14
0
11
题解 | [P1080] 国王游戏(简化版)
#include<bits/stdc++.h> using namespace std; using ll=long long; const ll N=65; struct C{ ll a,b; bool operator<(const C& other)...
2026-02-14
0
12
题解 | 【模板】质数判定Ⅱ ‖ 批量查询:线性筛
#include <bits/stdc++.h> using namespace std; using ll=long long; // 简化long long类型书写 const ll MAXN = 20000000; // 质数筛选最大范围 vector<ll> pri...
2026-02-10
0
15
题解 | 文
#include<bits/stdc++.h> using namespace std; using ll=long long; struct B{ string name; double score=0; }; int main(){ ios::sync_with...
2026-02-08
0
19
首页
上一页
1
2
3
4
5
下一页
末页