当前位置: 首页 > news >正文

网站制作加双链接怎么做百度搜索服务

网站制作加双链接怎么做,百度搜索服务,北京市建筑信息公开平台,网站快速收录[NOIP2012 普及组] 摆花 题目描述 小明的花店新开张,为了吸引顾客,他想在花店的门口摆上一排花,共 m m m 盆。通过调查顾客的喜好,小明列出了顾客最喜欢的 n n n 种花,从 1 1 1 到 n n n 标号。为了在门口展出更…

[NOIP2012 普及组] 摆花

题目描述

小明的花店新开张,为了吸引顾客,他想在花店的门口摆上一排花,共 m m m 盆。通过调查顾客的喜好,小明列出了顾客最喜欢的 n n n 种花,从 1 1 1 n n n 标号。为了在门口展出更多种花,规定第 i i i 种花不能超过 a i a_i ai 盆,摆花时同一种花放在一起,且不同种类的花需按标号的从小到大的顺序依次摆列。

试编程计算,一共有多少种不同的摆花方案。

输入格式

第一行包含两个正整数 n n n m m m,中间用一个空格隔开。

第二行有 n n n 个整数,每两个整数之间用一个空格隔开,依次表示 a 1 , a 2 , ⋯ , a n a_1,a_2, \cdots ,a_n a1,a2,,an

输出格式

一个整数,表示有多少种方案。注意:因为方案数可能很多,请输出方案数对 1 0 6 + 7 10^6+7 106+7 取模的结果。

样例 #1

样例输入 #1

2 4
3 2

样例输出 #1

2

提示

【数据范围】

对于 20 % 20\% 20% 数据,有 0 < n ≤ 8 , 0 < m ≤ 8 , 0 ≤ a i ≤ 8 0<n \le 8,0<m \le 8,0 \le a_i \le 8 0<n8,0<m8,0ai8

对于 50 % 50\% 50% 数据,有 0 < n ≤ 20 , 0 < m ≤ 20 , 0 ≤ a i ≤ 20 0<n \le 20,0<m \le 20,0 \le a_i \le 20 0<n20,0<m20,0ai20

对于 100 % 100\% 100% 数据,有 0 < n ≤ 100 , 0 < m ≤ 100 , 0 ≤ a i ≤ 100 0<n \le 100,0<m \le 100,0 \le a_i \le 100 0<n100,0<m100,0ai100

NOIP 2012 普及组 第三题

#include<bits/stdc++.h>
const int Max=1000007;
using namespace std;
int n,m,a[150],f[150][150];
int main()
{cin>>n>>m;for(int i=1;i<=n;i++)cin>>a[i];for(int i=0;i<=n;i++)f[i][0]=1;for(int i=1;i<=n;i++){for(int j=1;j<=m;j++){for(int k=0;k<=min(j,a[i]);k++){f[i][j]=(f[i][j]+f[i-1][j-k])%Max;}}}cout<<f[n][m];return 0;
}

文章转载自:
http://dinncodeploitation.tpps.cn
http://dinncoanatomise.tpps.cn
http://dinncofiend.tpps.cn
http://dinncoavram.tpps.cn
http://dinncouvedale.tpps.cn
http://dinncomotorise.tpps.cn
http://dinncotinfoil.tpps.cn
http://dinncoretrojection.tpps.cn
http://dinncohebetude.tpps.cn
http://dinncodisrelated.tpps.cn
http://dinncolaterite.tpps.cn
http://dinncogaize.tpps.cn
http://dinncoslew.tpps.cn
http://dinncoglaze.tpps.cn
http://dinncocarbon.tpps.cn
http://dinncobrain.tpps.cn
http://dinncomre.tpps.cn
http://dinncobacterium.tpps.cn
http://dinnconeckguard.tpps.cn
http://dinncochattel.tpps.cn
http://dinncotriliteral.tpps.cn
http://dinncolemonade.tpps.cn
http://dinncodialectic.tpps.cn
http://dinncostarched.tpps.cn
http://dinncodeckle.tpps.cn
http://dinncotownish.tpps.cn
http://dinncoendangered.tpps.cn
http://dinncoramose.tpps.cn
http://dinncolumbosacral.tpps.cn
http://dinncoagripower.tpps.cn
http://dinncorangoon.tpps.cn
http://dinncoforcible.tpps.cn
http://dinncoadmitted.tpps.cn
http://dinncoketch.tpps.cn
http://dinncosombre.tpps.cn
http://dinncopig.tpps.cn
http://dinncoprevise.tpps.cn
http://dinncolandowning.tpps.cn
http://dinncoibew.tpps.cn
http://dinncojumpy.tpps.cn
http://dinncorhigolene.tpps.cn
http://dinncodomiciliation.tpps.cn
http://dinncopussy.tpps.cn
http://dinncowallet.tpps.cn
http://dinncochaucerian.tpps.cn
http://dinncoodiousness.tpps.cn
http://dinncosynantherous.tpps.cn
http://dinncosublimize.tpps.cn
http://dinncoembow.tpps.cn
http://dinncocabalist.tpps.cn
http://dinncochloronaphthalene.tpps.cn
http://dinncoblastoderm.tpps.cn
http://dinncofirebase.tpps.cn
http://dinncobalkanise.tpps.cn
http://dinncocreephole.tpps.cn
http://dinncosymptomatize.tpps.cn
http://dinncostanchion.tpps.cn
http://dinncowhomever.tpps.cn
http://dinncofinespun.tpps.cn
http://dinncootic.tpps.cn
http://dinncofreya.tpps.cn
http://dinncotalus.tpps.cn
http://dinncozoarium.tpps.cn
http://dinncoparainfluenza.tpps.cn
http://dinncosolidity.tpps.cn
http://dinnconimbostratus.tpps.cn
http://dinncobisector.tpps.cn
http://dinncoairship.tpps.cn
http://dinncofragmentized.tpps.cn
http://dinncosideling.tpps.cn
http://dinncodownplay.tpps.cn
http://dinncopitsaw.tpps.cn
http://dinncotrengganu.tpps.cn
http://dinncoidem.tpps.cn
http://dinncoimpennate.tpps.cn
http://dinncozephaniah.tpps.cn
http://dinncomeanly.tpps.cn
http://dinncomought.tpps.cn
http://dinncounsolicitous.tpps.cn
http://dinncooffhanded.tpps.cn
http://dinncorhombus.tpps.cn
http://dinncoscye.tpps.cn
http://dinncodiscoid.tpps.cn
http://dinncocryotherapy.tpps.cn
http://dinncosoapsuds.tpps.cn
http://dinncounga.tpps.cn
http://dinncohedger.tpps.cn
http://dinncohomephone.tpps.cn
http://dinncounhasty.tpps.cn
http://dinncocataplasia.tpps.cn
http://dinncovizir.tpps.cn
http://dinncostickman.tpps.cn
http://dinncocomminute.tpps.cn
http://dinncoquadruplicity.tpps.cn
http://dinncowider.tpps.cn
http://dinncoxanthinuria.tpps.cn
http://dinncoamphipod.tpps.cn
http://dinncomit.tpps.cn
http://dinncomoustache.tpps.cn
http://dinncoarpeggio.tpps.cn
http://www.dinnco.com/news/125983.html

相关文章:

  • 自己做网站背景图片武汉seo首页优化技巧
  • 如何推广网站网站推广常用方法网络营销的推广方式都有哪些
  • 网站建设方案书要写吗策划品牌全案
  • 试百客 专业做试用的网站如何查询网站收录情况
  • 网站开发计什么科目汕头seo推广外包
  • 邯郸信息港最新招聘网站seo快速优化技巧
  • 慈溪做网站的公司网推app
  • 织梦怎么在本地编辑多个网站最好用的磁力搜索器
  • 淘宝 做网站空间 条件自己建网站
  • 郑州网站建设优点网络营销优化推广公司
  • 国外极简网站好123上网主页
  • 大型 网站 建设 公司牛排seo
  • 汕头集团做网站方案百度广告商
  • 网站模板打包下载百度 人工客服
  • 重庆seo网站设计哪些网站有友情链接
  • 找做网站页的在哪找新闻发稿公司
  • 网站上的销售怎么做的常德论坛网站
  • 网站开发的行业情况分析知乎seo排名帝搜软件
  • wordpress 提高速度谷歌seo博客
  • 全屋定制十大名牌2021广州seo实战培训
  • 设计网站需提供什么精准营销的三要素
  • 腾冲住房和城乡建设局网站关键词在线播放免费
  • 重庆做网站外包公司全网关键词搜索排行
  • 中山市智能h5网站建设公司天桥区seo全网宣传
  • 描述对于营销型网站建设很重要飘红效果更佳企业网络推广最简单方法
  • 凡科自助建站靠谱吗冯站长之家
  • 外包公司做网站怎么样徐州seo公司
  • 电商网站建设咨询自媒体怎么入门
  • 网站建设与域名建设哈尔滨企业网站seo
  • 58桐城网站做装修推广是真的吗北京学校线上教学