Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
127809 maoyu 求Sn的值 C++ 通过 100 0 MS 244 KB 207 2024-01-25 10:23:35

Tests(5/5):


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


测评信息: