银河护胃队
银河护胃队
全部文章
分类
归档
标签
去牛客网
登录
/
注册
银河护胃队的博客
全部文章
(共214篇)
题解 | 四值零和
#include<bits/stdc++.h> using namespace std; #define int long long const int N=2510; int n,a[N],b[N],c[N],d[N]; void solve(){ vector<i...
2026-03-06
1
29
题解 | 【入门班】借教室
#include<bits/stdc++.h> using namespace std; #define int long long const int N=1e6+10; int n,m,r[N]; int d[N],s[N],t[N]; bool check(int mid){ ...
2026-03-05
1
29
题解 | 整点巧克力
#include<bits/stdc++.h> using namespace std; #define int long long const int N=5e4+10; int n,d,h[N],l,r; vector<int> ans_path,res_path; ...
2026-03-05
1
31
题解 | 太阳系DISCO
#include<bits/stdc++.h> using namespace std; const int N=2e5+10; int n,k,a,b,x,y,mod; struct tim{ int dis; int count; }tim[N]; void bfs(in...
2026-03-05
1
39
题解 | 时津风的资源收集
// 引入C++标准库的所有头文件,方便竞赛编程使用 #include<bits/stdc++.h> // 使用标准命名空间,避免重复写std:: using namespace std; // 定义数组的最大尺寸,题目中涉及的数值范围不超过300,故设为310 const int N...
2026-03-05
1
33
题解 | 时津风的资源收集
#include<bits/stdc++.h> using namespace std; const int N=310; int T; int a,b,c,d; int dis[N]; int dx[8]={1,-1,10,-10,100,-100,300,10}; void...
2026-03-05
1
30
题解 | 能量项链
#include<bits/stdc++.h> using namespace std; const int N=200; int n,dp[N][N];//dp i,j 代表珠子区间i到j的最大聚合能量 struct Node{ int head,tail; }a[N];//珠...
2026-03-05
1
31
题解 | ACM中的AC题
#include<bits/stdc++.h> using namespace std; #define INF 1e9 // 定义无穷大,用于初始化最短时间 const int N=2e3+10; // 定义地图的最大尺寸 // 全局变量定义 int n,...
2026-03-04
1
39
题解 | 走一个大整数迷宫
#include<bits/stdc++.h> // 包含所有常用标准库,竞赛常用 using namespace std; // 使用std命名空间,避免重复写std:: #define int long long // 将int类型重定义为long long,防止数值...
2026-03-04
1
31
题解 | 山峰数组计数
// 引入C++标准库的所有头文件,竞赛中常用 #include<bits/stdc++.h> // 使用标准命名空间,避免每次写std:: using namespace std; // 将int类型重定义为long long,防止数值溢出 #define int long long ...
2026-03-03
1
32
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页