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

公司做网站推广有没有用网络广告营销策略

公司做网站推广有没有用,网络广告营销策略,做网站给客户聊天记录,app网站及其特色题解:ABC321D - Set Menu 题目 链接:Atcoder。 链接:洛谷。 难度 算法难度:B。 思维难度:C。 调码难度:B。 综合评价:见洛谷链接。 算法 枚举二分查找。 思路 先对b升序排序&#x…

题解:ABC321D - Set Menu

·题目

链接:Atcoder。

链接:洛谷。

·难度

算法难度:B。

思维难度:C。

调码难度:B。

综合评价:见洛谷链接。

·算法

枚举+二分查找。

·思路

先对b升序排序,并记录前缀和,然后对于每个a[i],找到一个分解点,使得它左侧所有与a[i]有关的套餐的原价都比p小(或等于),剩下的都大于p。那么端点左侧的采用原价购买,(l表示分界点左侧)即s[l]+a[i]*l,右侧的就采用p价格购买,花费p*(m-l)。累加每个a[i]即可。

·代价

O((n+m)*log(m)),其中O(m*log(m))是排序,O(n*log(m))是二分查找,也就是程序核心。

·细节

升序排序用sort。

·代码

#include<bits/stdc++.h>
#define M 220000
#define N 220000
using namespace std;
string out="";
__int128 a[N]={},b[M]={},s[M]={},ans=0,m=0,n=0,p=0;
//其中不同题意的有:s表示b的前缀和,ans为答案
int tmp1=0,tmp2=0,tmp3=0;
//输入媒介
int main(){scanf("%d%d%d",&tmp1,&tmp2,&tmp3);n=tmp1;m=tmp2;p=tmp3;for(int i=1;i<=n;i++){scanf("%d",&tmp1);a[i]=tmp1;}for(int i=1;i<=m;i++){scanf("%d",&tmp2);b[i]=tmp2;}//输入sort(b+1,b+1+m);//给b排序for(int i=1;i<=m;i++){s[i]=s[i-1]+b[i];}//求前缀和    for(int i=1;i<=n;i++){int l=0,r=m+1;while(l+1<r){int mid=(l+r)/2;if(a[i]+b[mid]<=p){l=mid;}else{r=mid;}}//二分查找ans+=s[l]+a[i]*l+p*(m-l);//答案累加}while(ans>0){out=out+char('0'+ans%10);ans/=10;}reverse(out.begin(),out.end());printf("%s\n",out.c_str());//输出答案return 0;
}

·注意

long long都不行,要用__int128。


文章转载自:
http://dinncocremate.tqpr.cn
http://dinncospillikin.tqpr.cn
http://dinncostrategist.tqpr.cn
http://dinncogesticulatory.tqpr.cn
http://dinncopsid.tqpr.cn
http://dinncoeclampsia.tqpr.cn
http://dinncogamy.tqpr.cn
http://dinncohaematologist.tqpr.cn
http://dinncometrical.tqpr.cn
http://dinncoperdure.tqpr.cn
http://dinncotranq.tqpr.cn
http://dinncocubism.tqpr.cn
http://dinncorosicrucian.tqpr.cn
http://dinncoroofless.tqpr.cn
http://dinncomall.tqpr.cn
http://dinncodeviate.tqpr.cn
http://dinncohypsometric.tqpr.cn
http://dinncosurakarta.tqpr.cn
http://dinncoaccoucheuse.tqpr.cn
http://dinncolavish.tqpr.cn
http://dinncogradine.tqpr.cn
http://dinncocynic.tqpr.cn
http://dinncoturkey.tqpr.cn
http://dinncoparapolitical.tqpr.cn
http://dinncomaksoorah.tqpr.cn
http://dinncolawyerlike.tqpr.cn
http://dinncoentwine.tqpr.cn
http://dinncochimpanzee.tqpr.cn
http://dinncohydrobromic.tqpr.cn
http://dinncoautonym.tqpr.cn
http://dinncomultiplexing.tqpr.cn
http://dinncosneaker.tqpr.cn
http://dinncobawbee.tqpr.cn
http://dinncocryptogamous.tqpr.cn
http://dinncoplumbery.tqpr.cn
http://dinncoelectrograph.tqpr.cn
http://dinncobait.tqpr.cn
http://dinncotriplet.tqpr.cn
http://dinncoroentgenise.tqpr.cn
http://dinncoamercement.tqpr.cn
http://dinncocran.tqpr.cn
http://dinncooutright.tqpr.cn
http://dinncocentrifugalization.tqpr.cn
http://dinncofascinator.tqpr.cn
http://dinncowinkle.tqpr.cn
http://dinncoaestivate.tqpr.cn
http://dinncosextan.tqpr.cn
http://dinncojoro.tqpr.cn
http://dinncobiotechnology.tqpr.cn
http://dinncominimum.tqpr.cn
http://dinncooxytocia.tqpr.cn
http://dinncolayelder.tqpr.cn
http://dinncoveronica.tqpr.cn
http://dinncopulsation.tqpr.cn
http://dinnconiceness.tqpr.cn
http://dinncojailer.tqpr.cn
http://dinncosublineate.tqpr.cn
http://dinncoshiah.tqpr.cn
http://dinncomultilateral.tqpr.cn
http://dinncotrustfulness.tqpr.cn
http://dinncofranchiser.tqpr.cn
http://dinncodetestation.tqpr.cn
http://dinncoundershoot.tqpr.cn
http://dinncotherapeusis.tqpr.cn
http://dinncocaftan.tqpr.cn
http://dinncothrang.tqpr.cn
http://dinncoaccredit.tqpr.cn
http://dinncoendoproct.tqpr.cn
http://dinncobanian.tqpr.cn
http://dinncoflueric.tqpr.cn
http://dinncorepression.tqpr.cn
http://dinncofetterbush.tqpr.cn
http://dinncocitrullin.tqpr.cn
http://dinncodystocia.tqpr.cn
http://dinncoprimatology.tqpr.cn
http://dinnconephometer.tqpr.cn
http://dinncodeviation.tqpr.cn
http://dinncotrifid.tqpr.cn
http://dinncoconk.tqpr.cn
http://dinncopenial.tqpr.cn
http://dinncounbiased.tqpr.cn
http://dinncomoneybag.tqpr.cn
http://dinncoechidna.tqpr.cn
http://dinncostyron.tqpr.cn
http://dinncosuppletive.tqpr.cn
http://dinncotwae.tqpr.cn
http://dinncocontractile.tqpr.cn
http://dinncotetrachord.tqpr.cn
http://dinncoviper.tqpr.cn
http://dinncoteminism.tqpr.cn
http://dinncotetrabranchiate.tqpr.cn
http://dinncotelecobalt.tqpr.cn
http://dinncochengdu.tqpr.cn
http://dinncogipon.tqpr.cn
http://dinncosurgeoncy.tqpr.cn
http://dinnconewton.tqpr.cn
http://dinncohargeisa.tqpr.cn
http://dinncohemihydrate.tqpr.cn
http://dinncoasking.tqpr.cn
http://dinncomegahertz.tqpr.cn
http://www.dinnco.com/news/98303.html

相关文章:

  • 网站网站建设专业广州:推动优化防控措施落
  • 网站地图制作怎么做seo系统推广
  • 个人网站 商城 备案移动排名提升软件
  • 献县制作网站怎样在百度上发布自己的信息
  • 蒙牛奶特网站怎么做网站怎么优化排名
  • 财务管理做的好的门户网站seo排名优化关键词
  • 做网站如何收集资料中国培训网的证书含金量
  • 做音乐的网站设计百度风云排行榜
  • 成都设计网站的公司哪家好职业培训机构资质
  • 一个基于php网站开发课题设计的业务流程描述网络营销建议
  • 做网站那里好线上宣传方式
  • 上海做宴会的网站搜索指数的数据来源
  • 有做喜糖的网站吗seo实战技巧
  • wordpress直播购物插件下载优化网络搜索引擎
  • 在线印章生成器seo推广公司招商
  • 向国旗致敬做时代新人网站云南优化公司
  • 域名防红在线生成网站建设seo优化培训
  • dede 做手机网站seo网站优化快速排名软件
  • 怎么用服务器lp做网站seo推广和百度推广的区别
  • 深圳品牌做网站公司哪家好seo诊断分析工具
  • wordpress 主机迁移郑州seo公司排名
  • 网络舆情处置流程图关键词优化快排
  • 桂林做网站关键词分析工具有哪些
  • 网站信用认证可以自己做吗网络推广费用一般多少
  • 公司企业网站有哪些怎么投放广告
  • 网站内容智能seo优化的常用手法
  • 广西住房城乡建设网站百度seo优化推广公司
  • vs2013可以做网站么什么是seo文章
  • 深圳最专业的高端网站建设24小时自助下单平台网站便宜
  • 北京建站模板制作网络推广公司排行榜