Submission #74712793


Source Code Expand

#include <bits/stdc++.h>
using namespace std;

int main(){
    int t;
    cin >> t;

    while(t--){
        int n;
        cin >> n;

        if(n == 1){
            cout << 1 <<endl;
        }
        else if(n == 2){
            cout << 1 << " " << 2 <<endl;
        }
        else{
            cout << 2 << " " << 3 << " " << 1 << " ";
            for(int i = 4; i <= n; i++){
                cout << i << " ";
            }
            cout <<endl;
        }
    }
}

Submission Info

Submission Time
Task A - Min of Sum of XOR
User Aditya988
Language C++23 (GCC 15.2.0)
Score 0
Code Size 496 Byte
Status WA
Exec Time 9 ms
Memory 3588 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 500
Status
WA × 1
WA × 14
Set Name Test Cases
Sample 00_sample_00.txt
All 00_sample_00.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt, 01_random_12.txt
Case Name Status Exec Time Memory
00_sample_00.txt WA 1 ms 3500 KiB
01_random_00.txt WA 9 ms 3376 KiB
01_random_01.txt WA 9 ms 3344 KiB
01_random_02.txt WA 9 ms 3500 KiB
01_random_03.txt WA 9 ms 3536 KiB
01_random_04.txt WA 9 ms 3588 KiB
01_random_05.txt WA 9 ms 3376 KiB
01_random_06.txt WA 9 ms 3388 KiB
01_random_07.txt WA 9 ms 3452 KiB
01_random_08.txt WA 9 ms 3524 KiB
01_random_09.txt WA 9 ms 3508 KiB
01_random_10.txt WA 9 ms 3376 KiB
01_random_11.txt WA 9 ms 3376 KiB
01_random_12.txt WA 8 ms 3508 KiB