Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
129809 王影彤 求Sn的值 C++ 通过 100 0 MS 248 KB 177 2024-01-27 11:10:29

Tests(5/5):


#include<bits/stdc++.h> using namespace std; int main(){ int a,x,s=0,n,i; cin>>a>>n; x=a; for(i=1;i<=n;i++){ s=s+a; a=a*10+x; } cout<<s<<endl; return 0; }


测评信息: