开始 2024-01-27 08:30:00

1.27复习

结束 2024-01-27 12:00:00
Contest is over.
当前 2025-05-04 01:37:12

B

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;

}


7iok  •  1年前

比赛已结束。