/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Wrong Answer 1ms 532.0 KiB
#2 Wrong Answer 2ms 432.0 KiB

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