Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
129605 梁煜然 求Sn的值 C++ 解答错误 20 0 MS 236 KB 170 2024-01-27 09:07:34

Tests(1/5):


#include<iostream> using namespace std; int main(){ int a,n,b,s; cin>>a>>n; b=a; s=0; for(int i=1;i<=n;i++){ s+=b; b=a*11; } cout<<s; return 0; }


测评信息: