标签:for alt out color clu image include ++ std
水题。
#include<iostream> using namespace std; int main() { int n,a[10],sum = 0; cin>>n; for(int i = 0; i < n; ++i) cin>>a[i]; for(int i = 0; i < n; ++i) { int t = a[i]; for(int j = 0; j < n; ++j) if(j != i) sum += t*10+a[j]; } cout<<sum; return 0; }
标签:for alt out color clu image include ++ std
原文地址:https://www.cnblogs.com/keep23456/p/12346217.html