From 8b2a33363e0349b96bdb638b36fd693c0f26d0ae Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Fri, 6 Aug 2021 18:56:13 +0800 Subject: [PATCH] =?UTF-8?q?737.=20=E6=95=B0=E7=BB=84=E6=9B=BF=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://www.acwing.com/problem/content/submission/code_detail/6943298/ --- AcWing/737/737.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 AcWing/737/737.cpp diff --git a/AcWing/737/737.cpp b/AcWing/737/737.cpp new file mode 100644 index 00000000..044ec1c5 --- /dev/null +++ b/AcWing/737/737.cpp @@ -0,0 +1,14 @@ +#include + +using namespace std; + +int x; + +int main() { + for (int i = 0; i < 10; i++) { + cin >> x; + cout << "X[" << i << "] = " << (x <= 0 ? 1 : x) << endl; + } + + return 0; +}