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_backconst double pi = acos(-1.0);const int inf = 0x3f3f3f3f;const ll INF = 0x3f3f3f3f3f3f3f3fll;const int MAX_N = 100010;int T, n;int data[MAX_N];struct FastIO {static const int S = 1000000;int wpos, pos, len;char wbuf[S];FastIO(): wpos(0) {}inline int xchar() {static char buf[S];if (pos == len) pos = 0, len = fread(buf, 1, S, stdin);if (pos == len) return -1;return buf[pos++];}inline int xint() {int c = xchar(), x = 0;while (c <= 32 && ~c) c = xchar();