#include<bits/stdc++.h> using namespace std;
int main() { double a[12][12]; int l; char c; double s; cin >> l >> c;
for (int i = 0; i <= 11; i++) {
for (int j = 0; j <= 11; j++) {
cin >> a[i][j];
}
}
for (int j = 0; j <= 11; j++) {
s += a[j][l];
}
if (c == 'S')
printf("%.1lf", s);
else
printf("%.1lf", s / 12);
return 0;
}
共 1 条回复
不要发答案!!!!!!!!!!!!! (虽然是上一题的)