Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
127249 A班-温皓霖 求Sn的值 C++ 解答错误 20 0 MS 244 KB 180 2024-01-25 08:28:52

Tests(1/5):


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


测评信息: