#include<bits/stdc++.h>
#define LL long long
using namespace std;
const int maxn = 1e5+5;
const int mod =1e9+7;
typedef pair<int,int>pii;
int a;
int b;
int ans;
int...
#include<cstdio>
#include<cstring>
#include<algorithm>
#include<set>
using namespace std;
int n,k;
struct node
{
int maxx,minn,sz;
node()
{
int x;sz = 1;
for(int i = 1; i <= k ; i...
#include<cstdio>
#include<algorithm>
#include<cstring>
using namespace std;
const int N = 3005, INF = 0x3f3f3f3f;
int n, m, q, f;
bool vis;
struct Edge {
int...