Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
127225 谭子浩 求Sn的值 C++ 通过 100 0 MS 240 KB 201 2024-01-25 08:26:20

Tests(5/5):


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


测评信息: