摘要: #include <bits/stdc++.h> using namespace std; int n,r,a[25]; bool vis[25]; void dfs (int dep) { for (int i=a[dep-1]+1;i<=n;i++) { if (!vis[i]) { a[dep 阅读全文
posted @ 2023-07-21 18:59 siuuuuuuuu 阅读(43) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int a[101],b[101],c[101],d,i; void init(int a[]){//获取字符串 并将字符串逆向存储转换为数组 string s; cin>>s; a[0]=s.length( 阅读全文
posted @ 2023-07-21 16:20 siuuuuuuuu 阅读(35) 评论(0) 推荐(0)
摘要: //高精度乘法 #include <bits/stdc++.h> using namespace std; char a[1005],b[1005]; int m[1005],n[1005],k[1006],h; int main() { cin>>a>>b; int la=strlen(a); i 阅读全文
posted @ 2023-07-21 14:09 siuuuuuuuu 阅读(24) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; int t,m,w[105],v[105],f[105][1005]; int main() { cin>>t>>m; for(int i=1; i<=m; i++) cin>>w[i]>>v[i]; for( 阅读全文
posted @ 2023-07-21 14:07 siuuuuuuuu 阅读(25) 评论(0) 推荐(0)