摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=1e5+10; int n,D; struct Node{ int x,y; bool operator<(const Node& t) const { return x< 阅读全文
posted @ 2026-02-13 22:53 AnoSky 阅读(1) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=50010; struct Cow{ int x; int id; bool operator<(const Cow& t) const{ return x<t.x; } 阅读全文
posted @ 2026-02-13 21:08 AnoSky 阅读(2) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=1e3+10,M=1e5+10; map<string,int> mp; int a[M]; bool vis[N]; int cnt[N]; int n,m; int m 阅读全文
posted @ 2026-02-13 20:23 AnoSky 阅读(3) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=1e6+10; int n,m; int a[N]; int cnt[N]; int main() { ios::sync_with_stdio(0),cin.tie(0) 阅读全文
posted @ 2026-02-10 21:15 AnoSky 阅读(2) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; int m; int main() { ios::sync_with_stdio(0),cin.tie(0); cin>>m; int l=1,r=2; int sum=1; while(l<=m 阅读全文
posted @ 2026-02-10 20:39 AnoSky 阅读(3) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; int n; int main() { ios::sync_with_stdio(0),cin.tie(0); cin>>n; int cur; cin>>cur; int ans=cur; fo 阅读全文
posted @ 2026-02-10 20:38 AnoSky 阅读(2) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=2e5+10; int n,c; int a[N]; int main() { ios::sync_with_stdio(0),cin.tie(0); cin>>n>>c; 阅读全文
posted @ 2026-02-10 19:47 AnoSky 阅读(6) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N=2e5+10; int n,m; LL s; int w[N],v[N]; int l[N],r[N]; LL s1[N],s2 阅读全文
posted @ 2026-02-09 23:54 AnoSky 阅读(1) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N=1e6+10; int n,m; int r[N]; int d[N],s[N],t[N]; LL b[N]; bool che 阅读全文
posted @ 2026-02-09 23:03 AnoSky 阅读(2) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N=1e5+10; LL a[N],b[N]; int n; int main() { ios::sync_with_stdio(0 阅读全文
posted @ 2026-02-09 23:01 AnoSky 阅读(2) 评论(0) 推荐(0)