Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
129814 凌嘉圻 求Sn的值 C++ 通过 100 0 MS 240 KB 182 2024-01-27 11:15:03

Tests(5/5):


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


测评信息: