摘要: 点击查看代码 #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)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=100010,M=N*2; //结合dfs的特点 int n; int h[N],e[M],ne[M],idx; int ans=N; bool st[N]; //理解细节 阅读全文
posted @ 2025-11-23 02:34 AnoSky 阅读(6) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; vector<int> A,s; int n; //高精度加法的模板 vector<int> add(vector<int> A,vector<int> B) { if(A.size()<B.si 阅读全文
posted @ 2025-11-22 00:39 AnoSky 阅读(4) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=125; int a[N][N],s[N][N]; int n; int main() { ios::sync_with_stdio(false); cin.tie(0); 阅读全文
posted @ 2025-11-21 23:37 AnoSky 阅读(3) 评论(0) 推荐(0)
摘要: 点击查看代码 #include <iostream> #include <algorithm> // 用于 min/max 函数(本题可省略,但建议保留以适配更多场景) using namespace std; const int MAX_SIZE = 105; // 数组最大尺寸,适配 n/m ≤ 阅读全文
posted @ 2025-11-21 17:46 AnoSky 阅读(4) 评论(1) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=2000010; int n,sum,j; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0 阅读全文
posted @ 2025-11-21 15:22 AnoSky 阅读(5) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=2000010; int n; long long a[N]; int bsearch(long long target,int n) { int l=1,r=n; whi 阅读全文
posted @ 2025-11-21 11:47 AnoSky 阅读(3) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; int m; int main() { scanf("%d",&m); for(int k1=sqrt(2*m);k1>1;k1--){ if(2*m%k1==0&&(k1+2*m/k1)%2){ 阅读全文
posted @ 2025-11-21 10:31 AnoSky 阅读(6) 评论(0) 推荐(0)
摘要: 广东工业新手赛 我不吃水果 点击查看代码 #include <iostream> using namespace std; const int N = 1005; int n, pre[N][N], ans; int main() { cin >> n; for (int i = 1; i <= n; i++) { for ( 阅读全文
posted @ 2025-11-20 00:41 AnoSky 阅读(6) 评论(0) 推荐(0)