Wrong Answer
Code
#include <iostream>
using namespace std;
int main() {
int T;
cin >> T;
while (T--) {
int N;
cin >> N;
for (int i = 1; i <= N; ++i) {
if (i % 2 == 1) {
if (i < N)
cout << i + 1 << " ";
else
cout << i << " ";
} else {
cout << i - 1 << " ";
}
}
cout << "\n";
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1210 A. Smallest Permutation
- Contest
- Educational Round 1
- Language
- C++11 (G++ 13.2.0)
- Submit At
- 2025-07-14 15:57:42
- Judged At
- 2025-07-14 15:57:42
- Judged By
- Score
- 0
- Total Time
- 2ms
- Peak Memory
- 536.0 KiB