Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
129851 | 陈航 | 求Sn的值 | C++ | Wrong Answer | 20 | 0 MS | 232 KB | 166 | 2024-01-27 11:44:07 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,n,x,s=0;; cin>>a>>n; for(int i=1;i<=n;i++){ s+=a; a=a*10+x; } cout<<s; return 0; }