- #include <iostream>
- #include<stdio.h>
- #include <cmath>
- using namespace std;
- int main()
- {
- double n,m,t=0;
- while (cin>>n>>m&&n<10000&&m<1000)
- {
- t=0;
- while (m--)
- {
- t=t+n;
- n=sqrt(n);
- }
- printf("%.2f\n",t);
- }
- return 0;
- }
杭电ACm求数列的和2009
最新推荐文章于 2020-08-29 12:00:34 发布