chenlan114
chenlan114
全部文章
分类
题解(1)
归档
标签
去牛客网
登录
/
注册
chenlan114的博客
全部文章
(共35篇)
题解 | 特殊的科学计数法
#include<bits/stdc++.h> using namespace std; using ll=long long; int main(){ ios::sync_with_stdio(0),cin.tie(0); string s; cin>>...
2026-01-31
0
8
题解 | 【模板】图的结构Ⅰ ‖ 拓扑排序:Kahn
#include <iostream> #include <vector> #include <queue> using namespace std; using ll = long long; /* 无环有向图 C++ 在竞赛中,1 秒约能处理 10e8 次简...
2026-01-28
0
6
题解 | 游游的二进制树
#include<bits/stdc++.h> using namespace std; using ll=long long; const ll N=1e3+5; string s; // 存储每个节点的二进制位(0/1) vector<vector<ll...
2026-01-27
0
6
题解 | 好好好数组
#include<bits/stdc++.h> using namespace std; using ll=long long; int main(){ // 输入输出流优化,加速cin/cout的读写速度 ios::sync_with_stdio(0),cin.tie(0); ...
2026-01-25
0
11
题解 | 小红删数字
#include<bits/stdc++.h> using namespace std; using ll = long long; const ll N = 2e5 + 5, M = 1e9 + 7; // N:数组最大长度 M:取模模数(防止数值溢出) ll a[N]; ...
2026-01-20
0
11
题解 | 护花使者
#include <bits/stdc++.h> using namespace std; using ll=long long; const ll N=1e5+5; // 定义奶牛结构体:存储每头奶牛的往返时间T(单程T分钟,往返2*T)、每分钟毁花数D struct caw{ ...
2026-01-18
0
19
题解 | 有趣的区间
#include <iostream> using namespace std; using ll=long long; // 用ll别名表示long long,避免溢出(n可能很大) int main() { ios::sync_with_stdio(0),cin.tie(...
2026-01-17
0
15
题解 | 【模板】拓扑排序
#include <iostream> #include <vector> #include <queue> using namespace std; using ll = long long; /* C++ 在竞赛中,1 秒约能处理 10e8 次简单操作(如加...
2026-01-16
0
18
题解 | many sum
#include <iostream> using namespace std; using ll =long long; const ll Max=2e6+5; ll A[Max]; // 存储序列A的数组,A[1]~A[N]对应题目中的A₁~A_N ll B[Max]; //...
2026-01-14
0
19
题解 | 走迷宫
#include<bits/stdc++.h> using namespace std; using ll=long long; using PII=pair<ll,ll>; const ll N=1e3+5; // 存储网格地图:g[i][j]表示第i行第j列的格子状态(...
2026-01-14
0
22
首页
上一页
1
2
3
4
下一页
末页