Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
129744 黄曦 求Sn的值 C++ 通过 100 0 MS 236 KB 157 2024-01-27 10:20:38

Tests(5/5):


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


测评信息: