摘要: #include <iostream>#include <algorithm>using namespace std;const int N=10010;int n;struct Range{ int l,r; bool operator<(const Range&W) const { return 阅读全文
posted @ 2022-03-17 14:19 小白QIU 阅读(29) 评论(1) 推荐(0)
摘要: #include <iostream>#include <algorithm>#include <queue>using namespace std;const int N=100010;int n;struct Range{ int l,r; bool operator<(const Range& 阅读全文
posted @ 2022-03-16 17:29 小白QIU 阅读(47) 评论(1) 推荐(0)
摘要: #include <iostream>#include <algorithm>#include <cstring>using namespace std;const int N=10010;int n;struct Range{ int l,r; bool operator<(const Range 阅读全文
posted @ 2022-03-15 21:19 小白QIU 阅读(25) 评论(0) 推荐(0)
摘要: #include <iostream>#include <algorithm>#include <vector>using namespace std;int get(vector<int> num,int l,int r){ int res=0; for(int i=l;i>=r;i--) res 阅读全文
posted @ 2022-03-15 15:04 小白QIU 阅读(46) 评论(0) 推荐(0)
摘要: #include <iostream>#include <cstring>#include <algorithm>using namespace std;const int N=310;int n,m;int h[N][N];int f[N][N];int dx[4]={-1,0,1,0},dy[4 阅读全文
posted @ 2022-03-15 13:32 小白QIU 阅读(19) 评论(1) 推荐(0)
摘要: #include <iostream> #include <algorithm>#include <cstring>using namespace std;const int N=6010;int n;int happy[N];int h[N],e[N],ne[N],idx;int f[N][2]; 阅读全文
posted @ 2022-03-15 12:00 小白QIU 阅读(25) 评论(0) 推荐(0)
摘要: #include <cstring>#include <iostream>#include <algorithm>using namespace std;const int N=20,M=1<<N;int n;int w[N][N];int f[M][N];int main(){ cin>>n; f 阅读全文
posted @ 2022-03-14 21:31 小白QIU 阅读(26) 评论(0) 推荐(0)
摘要: #include <iostream>#include <cstring>#include <algorithm>using namespace std;const int N=12,M=1<<N;int n,m;long long f[N][N];bool st[N];int main(){ wh 阅读全文
posted @ 2022-03-14 21:04 小白QIU 阅读(33) 评论(0) 推荐(0)
摘要: #include <iostream>#include <iostream>using namespace std;const int N=1010;int n;int s[N];int f[N][N];int main(){ cin>>n; for(int i=1;i<=n;i++) cin>>s 阅读全文
posted @ 2022-03-13 14:30 小白QIU 阅读(28) 评论(0) 推荐(0)
摘要: #include <iostream>#include <algorithm>using namespace std;const int N=1010;int n,m;char a[N],b[N];int f[N][N];int main(){ cin>>n>>m; cin>>a+1>>b+1; f 阅读全文
posted @ 2022-03-13 12:33 小白QIU 阅读(27) 评论(0) 推荐(0)