From 10fb2c51542be14b9ddbcbf1b82051981aa39bdf Mon Sep 17 00:00:00 2001 From: Ren Baoshuo Date: Mon, 2 Aug 2021 18:57:33 +0800 Subject: [PATCH] =?UTF-8?q?712.=20=E6=AD=A3=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://www.acwing.com/problem/content/submission/code_detail/6846190/ --- AcWing/712/712.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 AcWing/712/712.cpp diff --git a/AcWing/712/712.cpp b/AcWing/712/712.cpp new file mode 100644 index 00000000..5a01ccd9 --- /dev/null +++ b/AcWing/712/712.cpp @@ -0,0 +1,14 @@ +#include + +using namespace std; + +int main() { + double x; + int ans = 0; + for (int i = 1; i <= 6; i++) { + cin >> x; + if (x > 0) ans++; + } + cout << ans << " positive numbers" << endl; + return 0; +}