结果:5537376230390876637302048746832985971773659831892672
取十位:5537376230
#include<iostream>
#include<string.h>
using namespace std;
int main()
{
char c[55];
int a[55],b[105];
memset(b,0,sizeof(b));
for(int i = 0;i<100;i++){
gets(c);
for(int j = 49;j>=0;j--){
a[j] = c[j]-'0';
b[j+50] += a[j];
}
for(int k = 99;k>=0;k--){
if(b[k]>=10){
b[k-1] += (b[k]/10);
b[k] = b[k]%10;
}
}
}
int index = 0;
for(int i=0;i<100;i++){
if(b[i]==0&&index==0){
continue;
}
if(b[i]!=0){
index = 1;
}
if(index==1)
cout<<b[i];
}
return 0;
}