Description
Input
Output
Sample Input
Sample Output
#include <stdio.h> #include <math.h> using namespace std; int main() { int m,n,i; while(scanf("%d%d",&n,&m)!=EOF) { double s = 0, b = n; for (i = 0; i < m; i++) { s += b; b = sqrt(b); } printf("%.2lf\n",s); } return 0; }