```cpp
include[HTML_REMOVED]
include[HTML_REMOVED]//审题!!!保留一位小数输出 用printf
using namespace std;
double a[12][12];//not int
int main(){
int c;
double sum=0;
char ch;
cin>>c;
cin>>ch;
for(int i=0;i<12;i){
for(int j=0;j<12;j){
cin>>a[i][j];
if(j==c) {sum+=a[i][j];}
}
}
if(ch==’S’)
printf(“%.1lf”,sum);
else if(ch==’M’){
printf(“%.1lf”,sum/12);
}
return 0;
}