#include<cstdio>
double mul(double x,int y){
double result=1.0;
for(int i=0;i<y;i++){
result*=x;
}
return result;
}
int main(){
int n=0;
double A=0,B=0;
double a[11];
double res_A;
double res_B;
scanf("%d%lf%lf",&n,&A,&B);
for(int i=0;i<n+1;i++){
scanf("%lf",&(a[i]));
double temp=a[i]/(i+1);
res_A+=temp*mul(A,i+1);
res_B+=temp*mul(B,i+1);
}
int result = (int)(res_B-res_A+0.5);
printf("%d\n",result);
return 0;
}
分享到:
相关推荐
Title: Windows Internals, Part 1: System architecture, processes, threads, memory management, and more, 7th Edition pdf转化版 Author: Alex Ionescu, David A. Solomon, Pavel Yosifovich Length: 800 pages...
(b) In considering enterprise information systems, one would face the EE vs. SE viewpoints, needing nevertheless to keep the software under develop- ment consistent with its surrounding enterprise ...
Mathematical Methods for Physicists 7th Edition by George B. Arfken, Hans J. Weber and Frank E. Harris
He began his study of economics at Princeton University, where he received an A.B. in 1980. After earning a Ph.D. in economics from MIT, he began teaching at Harvard in 1985 and was promoted to full ...
Windows Internals, Part 1: System architecture, processes, threads, memory management, and more, 7th Edition Author: Alex Ionescu, David A. Solomon, Pavel Yosifovich Length: 800 pages Edition: 7 ...
Title: Windows Internals, Part 1: System architecture, processes, threads, memory management, and more, 7th Edition Author: Alex Ionescu, David A. Solomon, Pavel Yosifovich Length: 800 pages Edition: ...
zilevnTh-bca / mca) zava810 / Android rust810 python(L_tenTh-J_zilevnTh-bca / mca ..) gimp,kdenlive,linuxmint,记事本++(7Th-J_zilevnTh-bca / mca) 请尝试hksuletr.apk,hpop_u5.apk u5.ttf(需要...
作者简介 Dr. William Stallings has authored 18 titles, and counting revised editions, over 40 books on computer security, computer networking, and computer architecture....Appendix B Sage Examples
Title: C++ Programming: From Problem Analysis to Program Design, 7th Edition Author: D. S. Malik Length: 1488 pages Edition: 7 Language: English Publisher: Course Technology Publication Date: 2014-02-...
[操作系统概念.(操作系统恐龙书)].Silberschatz.Galvin.Operating.System.Concepts.7th.ED.part3
[操作系统概念.(操作系统恐龙书)].Silberschatz.Galvin.Operating.System.Concepts.7th.ED.part4
Now in its Seventh Edition, UNDERSTANDING OPERATING SYSTEMS continues to provide a clear and straightforward explanation of operating system ...Appendix B: ACM Code of Ethics and Professional Conduct
CompTIA Network+ Certification All-in-One Exam Guide, Seventh Edition (Exam N10-007) By 作者: Mike Meyers ISBN-10 书号: 1260122387 ...Appendix B Create Your Study Plan Appendx C About the Online Content
经典JAVA教材,epub电子书格式,方便查阅。 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除 。
针对PolSARpro软件的专业指导,D2P2为7th ADVANCED TRAINING COURSE ON LAND REMOTE SENSING, D3B为8th ADVANCED TRAINING COURSE ON LAND REMOTE SENSING,来源欧空局开放文件...
Systems Analysis and Design in a Changing World Sixth Edition John W. Satzinger, Robert B. Jackson, Stephen D. Burd
主板 联想 20KNA002CD ( 7th/8th Generation Intel Processor Family I/O - 9D4E 笔记本芯片组 ) 显卡 AMD Radeon RX 550 ( 2 GB / 联想 ) 内存 8 GB ( 记忆科技 DDR4 2666MHz ) 主硬盘 HFM128GDHTNG-8310B ( 128...
Theoretically a b+tree is O(N log k N) or log base k of N, now for the typical values of k which are above 200 for example the b+tree should outperform any binary tree because it will use less ...
C:\Documents and Settings\Administrator\桌面\JAVA2核心技术第7版(英文版)Part1\CoreJAVA 7th Edithon\v1ch6.rar
但是由于时间冲突与一些个人原因,我只参与并完成了初赛任务(罚金)在初赛成绩中,取得A榜第5 , B榜第7 (最高1.68% )的成绩(这个成绩实际上只用了if-idf特征和Word2Vec特征,该项目在初赛结束后进行过多尝试和...