Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
71333 sh25_wangsj 计算多项式的值 C++ 通过 0 MS 248 KB 245 2025-10-25 11:09:26

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ float a; int b; cin>>a>>b; double c=1,d=1; for(int i=0;i<b;i=i+1){ c=c*a; d=d+c; } cout<<fixed<<setprecision(2)<<d; return 0; }


测评信息: