Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
127291 A班-温皓霖 求Sn的值 C++ 通过 100 0 MS 236 KB 190 2024-01-25 08:35:22

Tests(5/5):


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


测评信息: