摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=500005; int l[N],r[N]; int n,m; bool del[N]; void insert(int x,int y) { r[x]=r[y],l[x] 阅读全文
posted @ 2025-11-24 23:53 AnoSky 阅读(12) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=101; int n,m; int ne[N]; int main() { cin>>n>>m; if(!n&&!m) return 0; for(int i=1;i<n; 阅读全文
posted @ 2025-11-24 19:43 AnoSky 阅读(3) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=1000010; int e[N],ne[N],idx,head=-1; int pos[N]; //此题的关键是查询数值,需要根据数值来查询到一个元素的后面一个元素是什么 阅读全文
posted @ 2025-11-24 10:37 AnoSky 阅读(17) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<iostream> #include<cstdio> using namespace std; double a,b,c,d,a1,b1,c1,d1;// 题目要的数据是小数点后2位所以定义首先用double int num;// num用来记录解的个数 因为一元三次 阅读全文
posted @ 2025-11-24 09:43 AnoSky 阅读(3) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=140; int n,ans; vector<int> A,rA; string s; //读入函数 void init() { //初始化读入数组,要区分数字大于10的情 阅读全文
posted @ 2025-11-24 09:26 AnoSky 阅读(3) 评论(0) 推荐(0)