清点车厢的货物

This commit is contained in:
2025-08-04 17:23:56 +08:00
parent 2ea7d570ad
commit 9db0932f82

View File

@@ -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;
}