diff --git a/AcWing/749/749.cpp b/AcWing/749/749.cpp new file mode 100644 index 00000000..4838fcf5 --- /dev/null +++ b/AcWing/749/749.cpp @@ -0,0 +1,18 @@ +#include + +using namespace std; + +int main() { + char op; + cin >> op; + double x, sum = 0; + for (int i = 0; i < 12; i++) { + for (int j = 0; j < 12; j++) { + cin >> x; + if (i < 5 && j > i && j <= 10 - i) sum += x; + } + } + cout << fixed << setprecision(1) << sum / (op == 'S' ? 1 : 30) << endl; + + return 0; +} diff --git a/AcWing/749/data/6.ans b/AcWing/749/data/6.ans new file mode 100644 index 00000000..20aec44e --- /dev/null +++ b/AcWing/749/data/6.ans @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b7b5c2de48db399c7aaa2007f204df2a5650d22ea31b6be9458409f96b3a517b +size 5 diff --git a/AcWing/749/data/6.in b/AcWing/749/data/6.in new file mode 100644 index 00000000..5465fb9f --- /dev/null +++ b/AcWing/749/data/6.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c9d35da19bbb4f2230e7e094d5bf317b6b4313a0f4abe8d12cf2b16de65f293b +size 661