Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
127209 陈道宁 求Sn的值 C++ 通过 100 0 MS 244 KB 188 2024-01-25 08:24:08

Tests(5/5):


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


测评信息: