Lang:G++
Edit12345678910111213141516171819202122232425262728293031#include <bits/stdc++.h>#define IOS ios_base::sync_with_stdio(0); cin.tie(0);using namespace std;typedef long long ll;#define mp make_pair#define fi first#define se second#define pb push_back#define PI pair<int,int>const double pi = acos(-1.0);const int inf = 0x3f3f3f3f;const ll INF = 0x3f3f3f3f3f3f3f3fll;const ll mod = (ll)(1e9 + 7);const int N = 1000010;int n;int data[N];int main() {while (cin >> n) {int tp1 = 1, tp2 = n;for (int i = 1; i <= n; ++i) {if (i & 1) {data[tp1++] = i;} else {data[tp2--] = i;}}/*