Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
129849 韩立鹏 求Sn的值 C++ 通过 100 0 MS 248 KB 204 2024-01-27 11:42:34

Tests(5/5):


#include <iostream> #include <cstdio> using namespace std; int main() { long long a,n,s=0,x; cin>>a>>n; x=a; for(int i=1;i<=n;i++){ s=s+a; a=10*a+x; } cout<<fixed<<s; return 0; }


测评信息: