......

ykj69 2022-10-19 18:47:13 3

#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;

}

{{ vote && vote.total.up }}

共 1 条回复

wczzq 原神启动

不要发答案!!!!!!!!!!!!! (虽然是上一题的)