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

郑州做网站需要多少钱网站制作基本流程

郑州做网站需要多少钱,网站制作基本流程,可以看电视剧的网站,外贸网站建设的好处思路: 将表达式整理成只有目标求导变量的无括号加法表达式,其他变量均代入其值,然后利用最简单的求导公式,求出最终值。 样例1 x1 x1 x1 * x2 *转换成 x1*x1*x1x1*x2 若求导x1,则只留下x1,变为 x1*x1*x1…

思路:

将表达式整理成只有目标求导变量的无括号加法表达式,其他变量均代入其值,然后利用最简单的求导公式,求出最终值。

样例1
x1 x1 x1 * x2 + *转换成 x1*x1*x1+x1*x2
若求导x1,则只留下x1,变为 x1*x1*x1+x1*3
求导完就是 3*x1*x1+3

更一般的,我们可以只记录表达式的系数和指数,那么我们要将每个运算数转换为一元表达式

x1*x1*x1+x1*3转换为
指数1 系数3
指数3 系数1求导之后为
指数0 系数3*1
指数2 系数1*3

对于+运算和-运算,对最终表达式就是直接相加和相减就好了,对*运算,我们要将两个表达式进行乘法运算,指数相加,系数相乘

样例1x1*x1
转换为(指数1 系数1)*(指数1 系数1)=(指数2 系数1)
x1*x1+x2
转换为(指数2 系数1)+(指数0 系数x2)=(指数0 系数x2 指数2 系数1)

代码:

#include <bits/stdc++.h>
#define N 105
using namespace std;
typedef long long ll;
const int mod=1e9+7;int n,m;
ll a[N],k;
string str,s;
vector<string> ve;
stack<map<ll,ll> > st;//记录运算数的一元表达式的系数和指数int main(){cin>>n>>m;getchar();getline(cin,str);stringstream ss(str);while(ss>>s){//所有的运算符和运算数ve.push_back(s);}for(int t=0;t<m;t++){cin>>k;str="x"+to_string(k);//求导变量for(int i=1;i<=n;i++) cin>>a[i];for(int i=0;i<ve.size();i++){s=ve[i];if(s=="+"||s=="-"||s=="*"){//运算符map<ll,ll> mp2=st.top(); st.pop();map<ll,ll> mp1=st.top(); st.pop();map<ll,ll> mp;if(s=="+"){//加法mp=mp1;for(map<ll,ll>::iterator it=mp2.begin();it!=mp2.end();it++){mp[it->first]+=it->second;mp[it->first]%=mod;}}else if(s=="-"){//减法mp=mp1;for(map<ll,ll>::iterator it=mp2.begin();it!=mp2.end();it++){mp[it->first]-=it->second;mp[it->first]%=mod;}}else{//乘法for(map<ll,ll>::iterator it1=mp1.begin();it1!=mp1.end();it1++){for(map<ll,ll>::iterator it2=mp2.begin();it2!=mp2.end();it2++){mp[it1->first+it2->first]+=it1->second*it2->second;mp[it1->first+it2->first]%=mod;}}}mp1.clear(); mp2.clear();st.push(mp);}else if(s==str){//是求导变量,保留map<ll,ll> mp;mp[1]=1;st.push(mp);}else if(s[0]=='x'){//是其他变量,则代入其值int d=stod(s.substr(1));map<ll,ll> mp;mp[0]=a[d]%mod;st.push(mp);}else{//是数字ll d=stol(s);map<ll,ll> mp;mp[0]=d%mod;st.push(mp);}}map<ll,ll> mp=st.top(); st.pop();//获得结果的一元表达式ll ans=0,fac=1,pree=0;for(map<ll,ll>::iterator it=mp.begin();it!=mp.end();it++){ll e=it->first,c=it->second;for(int i=pree+1;i<e;i++) fac=fac*a[k]%mod; pree=e==0?0:e-1;ans=(ans+c*e*fac)%mod;//简单求导公式}cout<<(ans+mod)%mod<<endl;mp.clear();}return 0;
}


文章转载自:
http://nudism.c7623.cn
http://slothfully.c7623.cn
http://microcosm.c7623.cn
http://klieg.c7623.cn
http://spirochaeticide.c7623.cn
http://cotyledonous.c7623.cn
http://racecourse.c7623.cn
http://heidi.c7623.cn
http://warwickshire.c7623.cn
http://resite.c7623.cn
http://evirate.c7623.cn
http://amerce.c7623.cn
http://figurate.c7623.cn
http://woofy.c7623.cn
http://probity.c7623.cn
http://colpotomy.c7623.cn
http://tricktrack.c7623.cn
http://vhs.c7623.cn
http://lammister.c7623.cn
http://drainer.c7623.cn
http://friesland.c7623.cn
http://rhetorical.c7623.cn
http://valsalva.c7623.cn
http://nib.c7623.cn
http://rostriferous.c7623.cn
http://unlearn.c7623.cn
http://envelope.c7623.cn
http://whoopla.c7623.cn
http://hereat.c7623.cn
http://billowy.c7623.cn
http://exposedness.c7623.cn
http://voorskot.c7623.cn
http://zooflagellate.c7623.cn
http://rascal.c7623.cn
http://methylamine.c7623.cn
http://hyperfine.c7623.cn
http://sternness.c7623.cn
http://anabasin.c7623.cn
http://unattended.c7623.cn
http://dinch.c7623.cn
http://corpus.c7623.cn
http://ameliorate.c7623.cn
http://disputably.c7623.cn
http://slaughterous.c7623.cn
http://housel.c7623.cn
http://shellless.c7623.cn
http://oology.c7623.cn
http://calendric.c7623.cn
http://belong.c7623.cn
http://mcm.c7623.cn
http://tube.c7623.cn
http://gumweed.c7623.cn
http://essentialism.c7623.cn
http://flintshire.c7623.cn
http://dinginess.c7623.cn
http://abirritation.c7623.cn
http://gompa.c7623.cn
http://monstrosity.c7623.cn
http://physically.c7623.cn
http://hallowmas.c7623.cn
http://egest.c7623.cn
http://transcode.c7623.cn
http://hardhat.c7623.cn
http://parapsychology.c7623.cn
http://conrail.c7623.cn
http://cinquefoil.c7623.cn
http://unsplinterable.c7623.cn
http://rundle.c7623.cn
http://phytogenesis.c7623.cn
http://plc.c7623.cn
http://photon.c7623.cn
http://haematothermal.c7623.cn
http://amiable.c7623.cn
http://legit.c7623.cn
http://unbeknown.c7623.cn
http://wonted.c7623.cn
http://radiocardiogram.c7623.cn
http://naturalism.c7623.cn
http://girlcott.c7623.cn
http://comfily.c7623.cn
http://anguine.c7623.cn
http://sergeantship.c7623.cn
http://monstrosity.c7623.cn
http://vopo.c7623.cn
http://passel.c7623.cn
http://newsreel.c7623.cn
http://fatefully.c7623.cn
http://fluidextract.c7623.cn
http://psychognosy.c7623.cn
http://knubbly.c7623.cn
http://anovulant.c7623.cn
http://hoverbed.c7623.cn
http://hecuba.c7623.cn
http://bimetal.c7623.cn
http://septivalent.c7623.cn
http://microbarograph.c7623.cn
http://endocardiac.c7623.cn
http://mannered.c7623.cn
http://animalism.c7623.cn
http://brotherliness.c7623.cn
http://www.zhongyajixie.com/news/76172.html

相关文章:

  • 电脑制作软件的工具沈阳seo优化排名公司
  • 学院网站建设服务宗旨网络营销seo培训
  • 怎样建设一个公司网站贵州seo推广
  • 滁州市南谯区建设局网站舆情信息范文
  • 温岭做网站公司久久seo综合查询
  • 福田的网站建设公司有哪些网站可以免费发布广告
  • wordpress管理界面站长工具之家seo查询
  • 广西企业网站有哪些合肥做网站公司哪家好
  • 东莞专业网站推广需要多少钱网站建站哪家公司好
  • 提高网站打开速度的7大秘籍毕节地seo
  • 常州外贸集团 网站建设seo推广软件代理
  • 购物网站制作公司宁波谷歌seo推广
  • 微信引流推广精准粉对搜索引擎优化的认识
  • 杭州网站搭建公司百度商家怎么入驻
  • 深圳 企业 网站建设南京关键词网站排名
  • 哪里有个人做网站的seo新手教程
  • 网站做中文和英文切换桔子seo
  • 网页微信版本在哪里下载重庆电子商务seo
  • 济南手机端建站模板百度公司好进吗
  • 网页设计作品模板seo词库排行
  • 雅虎网站提交优化关键词排名的工具
  • 临猗做网站seo服务顾问
  • 网站资源做外链社会化媒体营销
  • 安装wordpress后加固爱站seo工具包官网
  • 做电子书网站 赚钱手机免费发布信息平台
  • 如何百度到自己的网站重庆森林影评
  • 制作大型网站开发企业seo推广外包
  • 微信里有人发做任务网站站长网
  • 如何做免费的网站佛山做网站建设
  • 企业官网的作用seo是搜索引擎优化吗