摘要: #include<bits/stdc++.h> using namespace std; int n; int main(){ cin>>n; priority_queue<int,vector<int>,greater<int>> heap; while(n--){ int x; cin>>x; 阅读全文
posted @ 2023-05-23 20:09 艾鑫4646 阅读(11) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; const int N=1e5+10; int n; struct Range{ int l,r; bool operator<(const Range & w)const { return l<w.l; } 阅读全文
posted @ 2023-05-23 20:09 艾鑫4646 阅读(10) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; const int N=1e5+10; int n; struct Range{ int l;int r; bool operator < (const Range & w)const { return r<w 阅读全文
posted @ 2023-05-23 20:08 艾鑫4646 阅读(7) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; const int N=1e5+10; int n; struct Range{ int l;int r; bool operator < (const Range & w)const { return r<w 阅读全文
posted @ 2023-05-23 20:08 艾鑫4646 阅读(14) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-05-23 20:06 艾鑫4646 阅读(19) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; const int N=110; int f[N]; int v[N][N],w[N][N],s[N]; int main(){ int n,m,k; cin>>n>>m; for(int i=1;i<=n;i 阅读全文
posted @ 2023-05-18 20:55 艾鑫4646 阅读(15) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; const int N=1010,mod=1e9+7; int f[N]; int main(){ int n; cin>>n; f[0]=1; for(int i=1;i<=n;i++){ for(int j 阅读全文
posted @ 2023-05-17 20:55 艾鑫4646 阅读(28) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cstring> #include<cstdio> #include<algorithm> using namespace std; const int N=10; int n; int str[N]; bool p[N]; void pl(i 阅读全文
posted @ 2023-05-16 21:23 艾鑫4646 阅读(49) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; const int N=110; int f[N][N]; int main(){ int n,m; cin>>n>>m; int v[N],w[N],s[N]; for(int i=1;i<=n;i++) c 阅读全文
posted @ 2023-05-15 20:54 艾鑫4646 阅读(25) 评论(0) 推荐(0)
摘要: #include<iostream> using namespace std; #include<fstream> test01(){ ofstream ofs; ofs.open("test.txt",ios::out); ofs<<"姓名"<<endl; ofs<<"性别"<<endl; ofs 阅读全文
posted @ 2023-05-05 21:21 艾鑫4646 阅读(43) 评论(0) 推荐(0)