Lang:G++
Edit12345678910111213141516171819202122232425262728293031#include <iostream>#include <cstdio>#include <cstdlib>#include <cstring>#include <cmath>#include <ctime>#include <cctype>#include <algorithm>#include <set>#include <map>#include <string>#include <vector>#include <queue>using namespace std;#define mp make_pair#define pb push_backtypedef long long LL;typedef pair<int, int> PII;void readInt(int &x) {x = 0;char c = getchar();for (; c < '0' || c > '9'; c = getchar());for (; c >= '0' && c <= '9'; c = getchar())x = (x << 3) + (x << 1) + c - '0';}void readSignedInt(int &x) {