chenlan114
chenlan114
全部文章
分类
题解(1)
归档
标签
去牛客网
登录
/
注册
chenlan114的博客
全部文章
(共67篇)
题解 | 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
30
题解 | 小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
25
题解 | 小红的扫雷游戏
#include<bits/stdc++.h> using namespace std; using ll=long long; using PII=pair<ll,ll>; // 定义8个方向的行/列偏移量(覆盖右、左、下、右下、左下、上、右上、左上) // dx对应行偏...
2026-02-17
0
34
题解 | 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
31
题解 | 小红升装备
#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
21
题解 | [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
24
题解 | 【模板】质数判定Ⅱ ‖ 批量查询:线性筛
#include <bits/stdc++.h> using namespace std; using ll=long long; // 简化long long类型书写 const ll MAXN = 20000000; // 质数筛选最大范围 vector<ll> pri...
2026-02-10
0
24
题解 | 文
#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
31
题解 | 小美的修路
#include<bits/stdc++.h> using namespace std; using ll = long long; /* 算法思想: 这是一个带「必选边」的最小生成树问题,基于Kruskal算法改进 核心逻辑: 1. 题目要求必须包含所有 p=1 的必选边,哪怕它们...
2026-02-08
0
35
题解 | eli和字符串
#include<bits/stdc++.h> using namespace std; using ll=long long; const ll inf=1145141919810; // 初始化无穷大,用于记录最小长度的初始值 int main(){ ios::sync_with...
2026-02-06
0
26
首页
上一页
1
2
3
4
5
6
7
下一页
末页