Responsive image

Problem 1070 --C语言程序设计教程(第三版)课后习题6.8

1070: C语言程序设计教程(第三版)课后习题6.8

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 454  Solved: 398
[Submit][Status][Web Board][Creator:]

Description

有一分数序列: 2/1 3/2 5/3 8/5 13/8 21/13...... 求出这个数列的前N项之和,保留两位小数。

Input

N

Output

数列前N项和

Sample Input

10

Sample Output

16.48

Source

 

[Submit][Status]
ACM算法攻关部
  • Anything about this OnlineJudge, Please Contact Administrator. Click add QQ

    OJ system based on HUSTOJ Project , UI based on Twitter Bootstrap

    Copyright 2016 ACM算法攻关部
    关于网站改版