From 9db0932f82499c3e6f6abbe83dfe5fee82629a38 Mon Sep 17 00:00:00 2001 From: leo12025 Date: Mon, 4 Aug 2025 17:23:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=82=B9=E8=BD=A6=E5=8E=A2=E7=9A=84?= =?UTF-8?q?=E8=B4=A7=E7=89=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test01/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test01/main.cpp b/test01/main.cpp index 989c145..6a18cbe 100644 --- a/test01/main.cpp +++ b/test01/main.cpp @@ -8,6 +8,8 @@ int main() { for (int i = 1; i <= n; i++) { cin >> a[i]; } - cout << a[k] << endl; + for (int i = n; i >= 1; i--) { + cout << a[i]; + } return 0; }