摘要:
#include<iostream>#include<cmath>using namespace std;int n;int a[40][40];int main(){ cin>>n; int k=n*n; int mid=(n+1)/2; a[1][mid]=1; int x=1,y=mid; f 阅读全文
摘要:
#include<iostream>#include<cstdio>#include<cstring>using namespace std;int main(){ string a[100001]; int b[100001],q[100001],w[100001]; int m,n,k=1; c 阅读全文
摘要:
#include<stdio.h>int main(){ int i,A[1005]={0},B[1005]={0},n,j; scanf("%d", &n); A[0]=B[0]=1; for (i=2;i<=n;i++){ for (j=0;j<100;j++) B[j]*=i; for (j= 阅读全文
摘要:
//01背包 // #include <iostream>// #include <algorithm>// using namespace std;// int tim[101];// int val[101];// int f[1001];// int main()// {// int t,m; 阅读全文
摘要:
//01背包 #include <cstdio> #include <algorithm> using namespace std; int v,n,tj[30],dp[21000],maxn; int main() { scanf("%d%d",&v,&n); for (int i = 1;i < 阅读全文