mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-05 11:18:47 +00:00
21 lines
404 B
C++
21 lines
404 B
C++
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
char c;
|
|
double sum = 0.00, t;
|
|
cin >> c;
|
|
for (int i = 0; i < 12; i++) {
|
|
for (int j = 0; j < 12; j++) {
|
|
cin >> t;
|
|
if (j > i) sum += t;
|
|
}
|
|
}
|
|
if (c == 'S')
|
|
cout << fixed << setprecision(1) << sum;
|
|
else
|
|
cout << fixed << setprecision(1) << sum / 66;
|
|
return 0;
|
|
}
|