diff --git a/AcWing/746/746.cpp b/AcWing/746/746.cpp new file mode 100644 index 00000000..22c65bc4 --- /dev/null +++ b/AcWing/746/746.cpp @@ -0,0 +1,17 @@ +#include + +using namespace std; + +int main() { + char op; + double x, sum = 0; + cin >> op; + for (int i = 0; i < 12; i++) { + for (int j = 0; j < 12; j++) { + cin >> x; + if (j < i) sum += x; + } + } + cout << fixed << setprecision(1) << sum / (op == 'S' ? 1 : 66) << endl; + return 0; +}