Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
129845 李轩智hhdxxf 计算球弹跳高度 C++ 解答错误 0 0 MS 256 KB 187 2024-01-27 11:41:06

Tests(0/2):


#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; }


测评信息: