Run ID:136735
提交时间:2025-11-15 15:17:32
#include <bits/stdc++.h> using namespace std; int main() { int a[1000000000000000000000000001],n; cin >> n; int a[100]; for (int i = 0; i < n; i++) { cin >> a[i]; } for (int i = 0; i < n - 1; i += 2) int temp = a[i]; a[i] = a[i + 1]; a[i + 1] = temp; } for (int i = 0; i < n; i++) { cout<<" "<<temp; } cout<<endl; return 0; }