#include<iostream>
#include<vector>
#include<algorithm>
#include<iterator>
using namespace std;
int main()
{
int sum; cin>>sum;
vector<int> v;
copy(istream_iterator<int>(cin),istream_iterator<int>(),back_inserter(v));
v.shrink_to_fit(),sum=0;
for(int i{};i<v.size();++i){
int idx=0;
while(idx!=v.size())
if(idx!=i) sum+=v[i]*10+v[idx++];
else idx++;
}
cout<<sum;
}
pat 1056
最新推荐文章于 2022-11-14 17:51:21 发布