From 2ea7d570adcacf9dda07b0d83bd9ca1565e66e61 Mon Sep 17 00:00:00 2001 From: leo12025 Date: Mon, 4 Aug 2025 17:18:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=ACk=E8=8A=82=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 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test01/main.cpp b/test01/main.cpp index 7cd4fc4..989c145 100644 --- a/test01/main.cpp +++ b/test01/main.cpp @@ -1,15 +1,13 @@ #include "iostream" using namespace std; -int a[105], n; +int a[105], n, k; int main() { cin >> n; for (int i = 1; i <= n; i++) { cin >> a[i]; } - for (int i = 1; i <= n; i++) { - cout << a[i]; - } + cout << a[k] << endl; return 0; }