#include<bits/stdc++.h> using namespace std; typedef long long LL; const int maxn=2000; int read() { int x = 0,f = 1;char c = getchar(); while(!isdigit(c)){if(c=='-') f=-1;c=getchar();} while(isdigit(c)){x = x * 10+ c - '0',c=getchar();} return x*f; } typedef struct bigint { ...