- 博客(6)
- 资源 (3)
- 收藏
- 关注
原创 zb的生日
#includeusing namespace std;int n,v,ans;int w[25],sum[25];void dfs(int i,int cnt){ if(i==0) { ans=max(cnt,ans); return; } //结果等于总重量的一般或者当前重量与剩余重量的和小于或
2014-06-30 20:31:18 283
原创 The Triangle
#includeusing namespace std;int a[105][105],d[105][105];int main(){ int n,i,j,num=1,max; cin>>n; for(i=1;i { for(j=1;j cin>>a[i][j]; num++;
2014-06-28 10:23:38 304
原创 拦截导弹
#include#includeusing namespace std;int main(){ int t,n; int p[25],count[25],i,j; cin>>t; while(t--) { cin>>n; for(i=0;i cin>>p[i];
2014-06-08 18:39:03 359
原创 超级台阶
#includeusing namespace std;int main(){ int n,m; int a[45]; int i; a[1]=0; a[2]=1; a[3]=2; for(i=4;i a[i]=a[i-1]+a[i-2]; cin>>n; while(n--
2014-06-08 15:36:27 326
原创 矩形嵌套
#include#includeusing namespace std;struct node{ int b,l;};bool cmp(node a,node b){ return a.b}int main(){ int t,n; node p[1010]; int count[1010],i,j
2014-06-08 15:24:16 317
原创 单调递增子序列
#include#include#includeusing namespace std;int main(){ int n; char s[10010]; int count[10010],len; cin>>n; while(n--) { cin>>s; len=strlen(
2014-06-08 14:54:31 290
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人