Wrong Answer
Code
#include <bits/stdc++.h>
using namespace std;
void solve() {
int t = 1;
cin >> t;
while(t--) {
int n; cin >> n;
int cpy = n;
int c = 0;
int even = 2;
int odd = 1;
while(cpy--){
if(c%2==0){
cout << even << " ";
even+=2;
}else{
cout << odd << " ";
odd+=2;
}
c++;
}
cout << endl;
}
}
int32_t main() {
solve();
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1210 A. Smallest Permutation
- Contest
- Educational Round 1
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2025-07-14 16:09:30
- Judged At
- 2025-07-14 16:09:30
- Judged By
- Score
- 0
- Total Time
- 2ms
- Peak Memory
- 532.0 KiB