/ SeriousOJ /

Record Detail

Time Exceeded


  
# Status Time Cost Memory Cost
#1 Time Exceeded ≥601ms ≥50.715 MiB
#2 Time Exceeded ≥600ms ≥51.766 MiB

Code

#include<bits/stdc++.h>
#include <numeric>
#include <tuple>
// #include <ext/pb_ds/assoc_container.hpp>
// #include <ext/pb_ds/tree_policy.hpp>

using namespace std;
// using namespace __gnu_pbds;

// #define ordered_set tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update>

#define all(v) v.begin(),v.end()
#define pb push_back
#define ll long long
ll mod =  998244353;


void solve() {
	int n;
	cin >> n;
	for (int i = 2; i < n + 1; i += 2)
	{
		cout << i << " " << i - 1 << " ";
	}
	cout << endl;

}


int main()
{
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);

#ifndef ONLINE_JUDGE
	freopen("inpu.txt", "r", stdin);
	freopen("outpit.txt", "w", stdout);
#endif

	int t;
	cin >> t;
	// t = 1;
	for (int i = 0; i < t; ++i)
	{
		solve();
	}
}

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 15:54:35
Judged At
2025-07-14 15:54:35
Judged By
Score
0
Total Time
≥601ms
Peak Memory
≥51.766 MiB