Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
127197 张耀夫 求Sn的值 C++ 通过 100 0 MS 256 KB 234 2024-01-25 08:22:42

Tests(5/5):


#include <bits/stdc++.h> using namespace std; int main(){ int n, m, sum = 0; cin >> n; cin >> m; sum = n; int tnt = 0; for ( int i = 1; i <= m; i++ ){ tnt += sum; sum += pow ( 10, i ) * n; } cout << tnt; }


测评信息: