Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
129544 11 求Sn的值 C++ 编译错误 0 0 MS 0 KB 175 2024-01-27 08:52:03

Tests(0/0):


#include<iostream> using namespace std; int main() { int a,n,i,j,s=0; cin>>a>>n; for(i=1;i<=n;i++) for(j=1;j<=i;j++) s+=a*pow(10,j-1); cout<<s<<endl; return 0; }


测评信息: