Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
127353 马佳琪 求Sn的值 C++ 通过 100 0 MS 248 KB 236 2024-01-25 08:47:54

Tests(5/5):


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


测评信息: