Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
129603 黄本瀚 算式成立1 C++ 解答错误 0 0 MS 260 KB 181 2024-01-27 09:07:06

Tests(0/1):


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


测评信息: